[ CCode ( cname = "yaml_read_handler_t" , instance_pos = 0.1 ) ]
public delegate int ReadHandler (uint8[] buffer, ref size_t size_read)
The prototype of a read handler.
The read handler is called when the parser needs to read more bytes from the source. The handler should write not more than size bytes to the buffer. The number of written bytes should be set to the length variable.
| buffer |
The buffer to write the data from the source. |
| size_read |
The actual number of bytes read from the source. |
| data |
A pointer to an application data specified by |
| size |
The size of the buffer. |
|
On success, the handler should return |