Alias 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.
Declaration
alias cairo_read_func_t = extern(C) cairo_status_t function(void*, ubyte*, uint);
Parameters
Name | Description |
closure | the input closure |
data | the buffer into which to read the data |
length | the amount of data to read |
Returns
the status code of the read operation