// Buffer returns a string containing the contents of the buffer. The returned // string will contain whitespace up to the buffer size as set by SetMax or // the value by the call to NewField func (f *Field) Buffer() string { str := C.field_buffer((*C.FIELD)(f), C.int(0)) return C.GoString(str) }
func (field *Field) Buffer(ind int) string { buf := C.field_buffer((*C.FIELD)(field), C.int(ind)) return C.GoString(buf) }
func (f *Field) Buffer(ind int) string { buf := C.field_buffer(f.field, C.int(ind)) return C.GoString(buf) }