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

Method TLzmaCodec

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

Source from the content-addressed store, hash-verified

9namespace {
10 struct TLzmaCodec: public TAddLengthCodec<TLzmaCodec> {
11 inline TLzmaCodec(int level)
12 : Level(level)
13 , MyName("lzma-" + ToString(Level))
14 {
15 }
16
17 static inline size_t DoMaxCompressedLength(size_t in) noexcept {
18 return Max<size_t>(in + in / 20, 128) + LZMA_PROPS_SIZE;

Callers

nothing calls this directly

Calls 1

ToStringFunction · 0.50

Tested by

no test coverage detected