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

Function xmlParserInputBufferCreateStatic

ThirdParty/libxml2/vtklibxml2/xmlIO.c:2052–2059  ·  view source on GitHub ↗

* xmlParserInputBufferCreateStatic: * @mem: the memory input * @size: the length of the memory block * @enc: the charset encoding if known * * Create a parser input buffer for parsing from a memory area. * * This functions assumes that the contents of the input buffer remain * valid until the document was parsed. Use xmlParserInputBufferCreateMem * otherwise. * * The encoding argumen

Source from the content-addressed store, hash-verified

2050 * Returns the new parser input or NULL in case of error.
2051 */
2052xmlParserInputBufferPtr
2053xmlParserInputBufferCreateStatic(const char *mem, int size,
2054 xmlCharEncoding enc) {
2055 if ((mem == NULL) || (size < 0))
2056 return(NULL);
2057
2058 return(xmlNewInputBufferMemory(mem, size, XML_INPUT_BUF_STATIC, enc));
2059}
2060
2061typedef struct {
2062 const char *str;

Callers

nothing calls this directly

Calls 1

xmlNewInputBufferMemoryFunction · 0.85

Tested by

no test coverage detected