MCPcopy Create free account
hub / github.com/catboost/catboost / TZLibCodec

Method TZLibCodec

library/cpp/blockcodecs/codecs/zlib/zlib.cpp:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace {
10 struct TZLibCodec: public TAddLengthCodec<TZLibCodec> {
11 inline TZLibCodec(int level)
12 : MyName("zlib-" + ToString(level))
13 , Level(level)
14 {
15 }
16
17 static inline size_t DoMaxCompressedLength(size_t in) noexcept {
18 return compressBound(in);

Callers

nothing calls this directly

Calls 1

ToStringFunction · 0.50

Tested by

no test coverage detected