* 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 */
| 913 | * Returns the number of bytes written |
| 914 | */ |
| 915 | static int |
| 916 | xmlGzfileWrite (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 | /** |