Function libyml::api::yaml_stream_end_event_initialize

source ·
pub unsafe fn yaml_stream_end_event_initialize(
    event: *mut YamlEventT,
) -> Success
Expand description

Create the STREAM-END event.

This function initializes a YamlEventT struct with the type YamlStreamEndEvent. It is used to signal the end of a YAML stream being emitted.

§Safety

  • event must be a valid, non-null pointer to a YamlEventT struct that can be safely written to.
  • The YamlEventT struct must be properly aligned and have the expected memory layout.