MCPcopy Create free account
hub / github.com/chrxh/alien / gzip_compressor

Method gzip_compressor

external/cpp-httplib/httplib.h:3044–3052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected