pub unsafe fn yaml_parser_load(
parser: *mut YamlParserT,
document: *mut YamlDocumentT,
) -> SuccessExpand description
Parse the input stream and produce the next YAML document.
Call this function subsequently to produce a sequence of documents constituting the input stream.
If the produced document has no root node, it means that the document end has been reached.
An application is responsible for freeing any data associated with the produced document object using the yaml_document_delete() function.
An application must not alternate the calls of yaml_parser_load() with the calls of yaml_parser_scan() or yaml_parser_parse(). Doing this will break the parser.
ยงSafety
parsermust be a valid, non-null pointer to a properly initializedYamlParserTstruct.documentmust be a valid, non-null pointer to aYamlDocumentTstruct that can be safely written to.- The
YamlParserTandYamlDocumentTstructs must be properly aligned and have the expected memory layout. - The caller must call
yaml_document_deleteto free any data associated with the produced document object. - The caller must not alternate calls to
yaml_parser_loadwith calls toyaml_parser_scanoryaml_parser_parseon the sameYamlParserTinstance.