pub unsafe fn yaml_parser_set_input_string(
parser: *mut YamlParserT,
input: *const u8,
size: u64,
)Expand description
Set a string input.
This function sets the input source for the parser to a string buffer.
Note that the input pointer must be valid while the parser object
exists. The application is responsible for destroying input after
destroying the parser.
ยงSafety
parsermust be a valid, non-null pointer to a properly initializedYamlParserTstruct.- The
YamlParserTstruct must not have an input handler already set. inputmust be a valid, non-null pointer to a null-terminated string buffer.- The
inputstring buffer must remain valid and unmodified until theparserobject is destroyed. - The
YamlParserTstruct and its associated data structures must be properly aligned and have the expected memory layout.