* 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
| 2050 | * Returns the new parser input or NULL in case of error. |
| 2051 | */ |
| 2052 | xmlParserInputBufferPtr |
| 2053 | xmlParserInputBufferCreateStatic(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 | |
| 2061 | typedef struct { |
| 2062 | const char *str; |
nothing calls this directly
no test coverage detected