* xmlOutputBufferCreateBuffer: * @buffer: a xmlBufferPtr * @encoder: the encoding converter or NULL * * Create a buffered output for the progressive saving to a xmlBuffer * * Returns the new parser output or NULL */
| 1844 | * Returns the new parser output or NULL |
| 1845 | */ |
| 1846 | xmlOutputBufferPtr |
| 1847 | xmlOutputBufferCreateBuffer(xmlBufferPtr buffer, |
| 1848 | xmlCharEncodingHandlerPtr encoder) { |
| 1849 | xmlOutputBufferPtr ret; |
| 1850 | |
| 1851 | if (buffer == NULL) return(NULL); |
| 1852 | |
| 1853 | ret = xmlOutputBufferCreateIO(xmlBufferWrite, NULL, (void *) buffer, |
| 1854 | encoder); |
| 1855 | |
| 1856 | return(ret); |
| 1857 | } |
| 1858 | |
| 1859 | /** |
| 1860 | * xmlOutputBufferGetContent: |
no test coverage detected