Exemplo n.º 1
0
// 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)
}
Exemplo n.º 2
0
func (field *Field) Buffer(ind int) string {
	buf := C.field_buffer((*C.FIELD)(field), C.int(ind))
	return C.GoString(buf)
}
Exemplo n.º 3
0
func (f *Field) Buffer(ind int) string {
	buf := C.field_buffer(f.field, C.int(ind))
	return C.GoString(buf)
}