* xmlBufferWrite: * @context: the xmlBuffer * @buffer: the data to write * @len: number of bytes to write * * Write @len bytes from @buffer to the xml buffer * * Returns the number of bytes written or a negative xmlParserErrors * value. */
| 865 | * value. |
| 866 | */ |
| 867 | static int |
| 868 | xmlBufferWrite (void * context, const char * buffer, int len) { |
| 869 | int ret; |
| 870 | |
| 871 | ret = xmlBufferAdd((xmlBufferPtr) context, (const xmlChar *) buffer, len); |
| 872 | if (ret != 0) |
| 873 | return(-XML_ERR_NO_MEMORY); |
| 874 | return(len); |
| 875 | } |
| 876 | #endif |
| 877 | |
| 878 | #ifdef LIBXML_ZLIB_ENABLED |
nothing calls this directly
no test coverage detected