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

Method DoDecompress

library/cpp/blockcodecs/codecs/bzip/bzip.cpp:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 inline void DoDecompress(const TData& in, void* out, size_t len) const {
37 unsigned int tmp = SafeIntegerCast<unsigned int>(len);
38 const int res = BZ2_bzBuffToBuffDecompress((char*)out, &tmp, (char*)in.data(), in.size(), 0, 0);
39
40 if (res != BZ_OK) {
41 ythrow TDecompressError(res);
42 }
43
44 if (len != tmp) {
45 ythrow TDecompressError(len, tmp);
46 }
47 }
48
49 const int Level;
50 const TString MyName;

Callers 1

DecompressMethod · 0.45

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected