ReadFunc

#cairo_read_func_t is the type of function which is called when a backend needs to read data from an input stream. It is passed the closure which was specified by the user at the time the read function was registered, the buffer to read the data into and the length of the data in bytes. The read function should return cairo.types.Status.Success if all the data was successfully read, cairo.types.Status.ReadError otherwise.

alias ReadFunc = cairo.types.Status delegate
(
ubyte[] data
)

Return Value

the status code of the read operation