* 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
| 2024 | * Returns the new parser input or NULL in case of error. |
| 2025 | */ |
| 2026 | xmlParserInputBufferPtr |
| 2027 | xmlParserInputBufferCreateMem(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: |
no test coverage detected