MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlParserInputBufferCreateMem

Function xmlParserInputBufferCreateMem

ThirdParty/libxml2/vtklibxml2/xmlIO.c:2026–2032  ·  view source on GitHub ↗

* xmlParserInputBufferCreateMem: * @mem: the memory input * @size: the length of the memory block * @enc: the charset encoding if known (deprecated) * * Create a parser input buffer for parsing from a memory area. * * This function makes a copy of the whole input buffer. If you are sure * that the contents of the buffer will remain valid until the document * was parsed, you can avoid t

Source from the content-addressed store, hash-verified

2024 * Returns the new parser input or NULL in case of error.
2025 */
2026xmlParserInputBufferPtr
2027xmlParserInputBufferCreateMem(const char *mem, int size, xmlCharEncoding enc) {
2028 if ((mem == NULL) || (size < 0))
2029 return(NULL);
2030
2031 return(xmlNewInputBufferMemory(mem, size, 0, enc));
2032}
2033
2034/**
2035 * xmlParserInputBufferCreateStatic:

Callers 2

xmlReaderForMemoryFunction · 0.85
xmlReaderNewMemoryFunction · 0.85

Calls 1

xmlNewInputBufferMemoryFunction · 0.85

Tested by

no test coverage detected