Function libyml::api::yaml_alias_event_initialize

source ·
pub unsafe fn yaml_alias_event_initialize(
    event: *mut YamlEventT,
    anchor: *const u8,
) -> Success
Expand description

Create an ALIAS event.

§Safety

  • event must be a valid, non-null pointer to a YamlEventT struct that can be safely written to.
  • anchor must be a valid, non-null pointer to a null-terminated UTF-8 string.
  • The YamlEventT struct must be properly aligned and have the expected memory layout.
  • The caller is responsible for freeing any dynamically allocated memory associated with the event using yaml_event_delete.