Function Surface.buffer

Gets the internal pixel buffer of the dsdl2.Surface

inout inout(void[]) buffer() @property @trusted;

This function is marked as @system due to the potential of referencing invalid memory.

Returns

slice of the buffer