Lines Matching defs:compression
1166 * @compression: the compression factor (0 - 9 included)
1174 xmlGzfileOpenW (const char *filename, int compression) {
1179 snprintf(mode, sizeof(mode), "wb%d", compression);
1274 int compression;
1373 *@compression: Compression value to use
1379 * the compression is plagiarized from the zlib source files.
1382 xmlCreateZMemBuff( int compression ) {
1388 if ( ( compressioncompression > 9 ) )
1408 z_err = deflateInit2( &buff->zctrl, compression, Z_DEFLATED,
1416 "Error initializing compression context. ZLIB error:",
1530 "Compression error while appending",
1547 * Flushes the compression buffers, appends gzip file trailers and
1562 /* Need to loop until compression output buffers are flushed */
1576 /* If the compression state is not Z_STREAM_END, some error occurred */
1630 if ( ctxt->compression > 0 ) {
1678 * @compression: The compression desired for the document.
1687 xmlIOHTTPOpenW(const char *post_uri, int compression)
1717 if ((compression > 0) && (compression <= 9)) {
1719 ctxt->compression = compression;
1720 ctxt->doc_buff = xmlCreateZMemBuff(compression);
1743 * Calls xmlIOHTTPOpenW with no compression to set up for a subsequent
1797 if ( ctxt->compression > 0 )
1862 if ( ctxt->compression > 0 ) {
2178 and saving with same compression ratio ... a pain.
2517 int compression ATTRIBUTE_UNUSED) {
2555 if ((compression > 0) && (compression <= 9) && (is_file_uri == 1)) {
2556 context = xmlGzfileOpenW(unescaped, compression);
2573 /* Need to pass compression parameter into HTTP open calls */
2575 context = xmlIOHTTPOpenW(unescaped, compression);
2592 if ((compression > 0) && (compression <= 9) && (is_file_uri == 1)) {
2593 context = xmlGzfileOpenW(URI, compression);
2609 /* Need to pass compression parameter into HTTP open calls */
2611 context = xmlIOHTTPOpenW(URI, compression);
2641 * @compression: the compression ration (0 none, 9 max).
2647 compression is set, the library only support
2655 int compression ATTRIBUTE_UNUSED) {
2657 return xmlOutputBufferCreateFilenameValue(URI, encoder, compression);
2659 return __xmlOutputBufferCreateFilename(URI, encoder, compression);