pub unsafe fn yaml_emitter_emit(
emitter: *mut YamlEmitterT,
event: *mut YamlEventT,
) -> SuccessExpand description
Emit an event.
The event object may be generated using the yaml_parser_parse() function. The emitter takes the responsibility for the event object and destroys its content after it is emitted. The event object is destroyed even if the function fails.
ยงSafety
emittermust be a valid, non-null pointer to a properly initializedYamlEmitterTstruct.eventmust be a valid, non-null pointer to aYamlEventTstruct that can be safely read from and will be destroyed by the function.- The
YamlEmitterTandYamlEventTstructs must be properly aligned and have the expected memory layout. - The
YamlEmitterTstruct must be in a valid state to emit the provided event.