| 3042 | |
| 3043 | #ifdef CPPHTTPLIB_ZLIB_SUPPORT |
| 3044 | inline gzip_compressor::gzip_compressor() { |
| 3045 | std::memset(&strm_, 0, sizeof(strm_)); |
| 3046 | strm_.zalloc = Z_NULL; |
| 3047 | strm_.zfree = Z_NULL; |
| 3048 | strm_.opaque = Z_NULL; |
| 3049 | |
| 3050 | is_valid_ = deflateInit2(&strm_, Z_DEFAULT_COMPRESSION, Z_DEFLATED, 31, 8, |
| 3051 | Z_DEFAULT_STRATEGY) == Z_OK; |
| 3052 | } |
| 3053 | |
| 3054 | inline gzip_compressor::~gzip_compressor() { deflateEnd(&strm_); } |
| 3055 |
nothing calls this directly
no outgoing calls
no test coverage detected