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

Function xmlGzfileWrite

ThirdParty/libxml2/vtklibxml2/xmlIO.c:915–922  ·  view source on GitHub ↗

* xmlGzfileWrite: * @context: the I/O context * @buffer: where to drop data * @len: number of bytes to write * * Write @len bytes from @buffer to the compressed I/O channel. * * Returns the number of bytes written */

Source from the content-addressed store, hash-verified

913 * Returns the number of bytes written
914 */
915static int
916xmlGzfileWrite (void * context, const char * buffer, int len) {
917 int ret;
918
919 ret = gzwrite((gzFile) context, (char *) &buffer[0], len);
920 if (ret < 0) xmlIOErr(0, "gzwrite()");
921 return(ret);
922}
923#endif /* LIBXML_OUTPUT_ENABLED */
924
925/**

Callers

nothing calls this directly

Calls 2

gzwriteFunction · 0.85
xmlIOErrFunction · 0.85

Tested by

no test coverage detected