| 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; |
no test coverage detected