pub unsafe fn yaml_emitter_set_output_string(
emitter: *mut YamlEmitterT,
output: *mut u8,
size: u64,
size_written: *mut u64,
)Expand description
Set a string output.
This function sets the output destination for the emitter to a string buffer.
The emitter will write the output characters to the output buffer of the
specified size. The emitter will set size_written to the number of written
bytes. If the buffer is smaller than required, the emitter produces the
YAML_write_ERROR error.
ยงSafety
emittermust be a valid, non-null pointer to a properly initializedYamlEmitterTstruct.- The
YamlEmitterTstruct must not have an output handler already set. outputmust be a valid, non-null pointer to a writeable buffer of sizesize.size_writtenmust be a valid, non-null pointer to asize_tvariable.- The
outputbuffer must remain valid and unmodified until the emitter is destroyed or the output is reset. - The
YamlEmitterTstruct and its associated data structures must be properly aligned and have the expected memory layout.