func GenBuffer() (buffer *Buffer) { h := C.walGenBuffer() if GetError() != AlNoError { return } buffer = new(Buffer) buffer.handle = h rememberBuffer(buffer) return }
// NewBuffer() creates a single buffer. // Convenience function, see NewBuffers(). func NewBuffer() Buffer { return Buffer(C.walGenBuffer()) }