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

Function Finish

library/cpp/streams/bzip2/bzip2.cpp:144–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 }
143
144 inline void Finish() {
145 int ret = BZ2_bzCompress(&BzStream_, BZ_FINISH);
146
147 while (ret != BZ_STREAM_END) {
148 Stream_->Write(TmpBuf(), TmpBufLen() - BzStream_.avail_out);
149 BzStream_.next_out = TmpBuf();
150 BzStream_.avail_out = TmpBufLen();
151
152 ret = BZ2_bzCompress(&BzStream_, BZ_FINISH);
153 }
154
155 Stream_->Write(TmpBuf(), TmpBufLen() - BzStream_.avail_out);
156 }
157
158private:
159 inline char* TmpBuf() noexcept {

Callers 11

bzip2.cppFile · 0.70
~TCodedOutputMethod · 0.50
~TLogElementMethod · 0.50
~THttpOutputMethod · 0.50
~TChunkedOutputMethod · 0.50
NextMethod · 0.50
~TBrotliCompressMethod · 0.50
~TInverseFilterMethod · 0.50
~TRequestOutMethod · 0.50
~TArchiveWriterMethod · 0.50
ExecuteMethod · 0.50

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected