File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/compression Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,6 @@ import kotlinx.atomicfu.atomic
88import kotlinx.cinterop.*
99import platform.zlib.*
1010
11- private const val DEFAULT_WINDOW_BITS = 15
12- private const val GZIP_ENCODING = 16 // Add this to windowBits for gzip encoding
13- private const val COMPRESSION_LEVEL = Z_BEST_COMPRESSION
14-
1511/* *
1612 * Streaming-style gzip compressor, implemented using zlib bindings
1713 */
@@ -35,9 +31,9 @@ internal class GzipCompressor {
3531 // Initialize deflate with gzip encoding
3632 val initResult = deflateInit2_(
3733 stream.ptr,
38- COMPRESSION_LEVEL ,
34+ Z_BEST_COMPRESSION ,
3935 Z_DEFLATED ,
40- DEFAULT_WINDOW_BITS + GZIP_ENCODING , // Add 16 for gzip encoding
36+ 15 + 16 , // Default windows bits (15) plus 16 for gzip encoding
4137 8 , // Default memory level
4238 Z_DEFAULT_STRATEGY ,
4339 ZLIB_VERSION ,
You can’t perform that action at this time.
0 commit comments