WriteHandler


Description:

[ CCode ( cname = "yaml_write_handler_t" , instance_pos = 0.1 ) ]
public delegate int WriteHandler (uint8[] buffer)

The prototype of a write handler.

The write handler is called when the emitter needs to flush the accumulated characters to the output. The handler should write size bytes of the buffer to the output.

Parameters:

buffer

The buffer with bytes to be written.

data

A pointer to an application data specified by yaml_emitter_set_output().

size

The size of the buffer.

Returns:

On success, the handler should return 1. If the handler failed, the returned value should be 0.


Namespace: Yaml
Package: yaml-0.1