pub unsafe fn yaml_document_start_event_initialize(
event: *mut YamlEventT,
version_directive: *mut YamlVersionDirectiveT,
tag_directives_start: *mut YamlTagDirectiveT,
tag_directives_end: *mut YamlTagDirectiveT,
implicit: bool,
) -> SuccessExpand description
Create the DOCUMENT-START event.
The implicit argument is considered as a stylistic parameter and may be
ignored by the emitter.
ยงSafety
eventmust be a valid, non-null pointer to aYamlEventTstruct that can be safely written to.version_directive, if not null, must point to a validYamlVersionDirectiveTstruct.tag_directives_startandtag_directives_endmust be valid pointers toYamlTagDirectiveTstructs, or both must be null.- If
tag_directives_startandtag_directives_endare not null, the range they define must contain validYamlTagDirectiveTstructs with non-nullhandleandprefixmembers, and thehandleandprefixstrings must be valid UTF-8. - The
YamlEventT,YamlVersionDirectiveT, andYamlTagDirectiveTstructs 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.