Function libyml::api::yaml_emitter_delete
source · pub unsafe fn yaml_emitter_delete(emitter: *mut YamlEmitterT)
Expand description
Destroy an emitter.
This function frees all memory associated with an emitter object, including any dynamically allocated buffers, events, and other data structures.
§Safety
emitter
must be a valid, non-null pointer to a properly initializedYamlEmitterT
struct.- The
YamlEmitterT
struct and its associated data structures must have been properly initialized and their memory allocated correctly. - The
YamlEmitterT
struct and its associated data structures must be properly aligned and have the expected memory layout. - After calling this function, the
emitter
pointer should be considered invalid and should not be used again.