Function libyml::api::yaml_parser_initialize
source · pub unsafe fn yaml_parser_initialize(parser: *mut YamlParserT) -> Success
Expand description
Initialize a parser.
This function creates a new parser object. An application is responsible for destroying the object using the yaml_parser_delete() function.
§Safety
parser
must be a valid, non-null pointer to an uninitializedYamlParserT
struct.- The
YamlParserT
struct must be properly aligned and have the expected memory layout. - The caller is responsible for properly destroying the parser object using
yaml_parser_delete
.