MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlBufferWrite

Function xmlBufferWrite

ThirdParty/libxml2/vtklibxml2/xmlIO.c:867–875  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

865 * value.
866 */
867static int
868xmlBufferWrite (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

Callers

nothing calls this directly

Calls 1

xmlBufferAddFunction · 0.85

Tested by

no test coverage detected