bufferClear method
Clears every cell of buffer to the bg color. Throws FFIException on
failure.
Implementation
void bufferClear(Pointer<OptimizedBufferHandle> buffer, Color bg) {
_guardAlloc('Failed to clear buffer', (alloc) {
_generated.bufferClear(buffer.cast(), bg.toNative(alloc));
});
}