The OpenD Programming Language

cairo_read_func_t

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_STATUS_SUCCESS if all the data was successfully read, CAIRO_STATUS_READ_ERROR otherwise.

import cairo.c.cairo;
extern (C)
alias cairo_read_func_t = cairo_status_t function(void* closure, ubyte* data, uint length)

Return Value

the status code of the read operation

Meta