Function libyml::api::yaml_emitter_initialize

source ·
pub unsafe fn yaml_emitter_initialize(emitter: *mut YamlEmitterT) -> Success
Expand description

Initialize an emitter.

This function creates a new emitter object. An application is responsible for destroying the object using the yaml_emitter_delete() function.

§Safety

  • emitter must be a valid, non-null pointer to an uninitialized YamlEmitterT struct.
  • The YamlEmitterT struct must be properly aligned and have the expected memory layout.
  • The caller is responsible for properly destroying the emitter object using yaml_emitter_delete.