Esempio n. 1
0
func GenBuffer() (buffer *Buffer) {
	h := C.walGenBuffer()

	if GetError() != AlNoError {
		return
	}

	buffer = new(Buffer)
	buffer.handle = h
	rememberBuffer(buffer)
	return
}
Esempio n. 2
0
// NewBuffer() creates a single buffer.
// Convenience function, see NewBuffers().
func NewBuffer() Buffer {
	return Buffer(C.walGenBuffer())
}