* xmlNewIOInputStream: * @ctxt: an XML parser context * @buf: an input buffer * @enc: the charset encoding if known * * Create a new input stream structure encapsulating the @input into * a stream suitable for the parser. * * Returns the new input stream or NULL */
| 1838 | * Returns the new input stream or NULL |
| 1839 | */ |
| 1840 | xmlParserInputPtr |
| 1841 | xmlNewIOInputStream(xmlParserCtxtPtr ctxt, xmlParserInputBufferPtr buf, |
| 1842 | xmlCharEncoding enc) { |
| 1843 | const char *encoding; |
| 1844 | |
| 1845 | if (buf == NULL) |
| 1846 | return(NULL); |
| 1847 | |
| 1848 | encoding = xmlGetCharEncodingName(enc); |
| 1849 | return(xmlNewInputInternal(ctxt, buf, NULL, encoding)); |
| 1850 | } |
| 1851 | |
| 1852 | /** |
| 1853 | * xmlNewEntityInputStream: |
no test coverage detected