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