MCPcopy Create free account
hub / github.com/apache/orc / BackUp

Method BackUp

c++/src/Compression.cc:192–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190 };
191
192 void CompressionStream::BackUp(int count) {
193 uint64_t backup = static_cast<uint64_t>(count);
194 uint64_t currSize = rawInputBuffer.size();
195 if (backup > currSize) {
196 throw CompressionError("Can't backup that much!");
197 }
198 rawInputBuffer.resize(currSize - backup);
199 }
200
201 uint64_t CompressionStream::flush() {
202 compressInternal();

Callers 8

TEST_FFunction · 0.45
TESTFunction · 0.45
compressAndVerifyFunction · 0.45
TESTFunction · 0.45
resetBufferStartMethod · 0.45
finishEncodeMethod · 0.45
flushMethod · 0.45
finishEncodeMethod · 0.45

Calls 4

CompressionErrorClass · 0.85
getNameFunction · 0.85
sizeMethod · 0.65
resizeMethod · 0.45

Tested by 4

TEST_FFunction · 0.36
TESTFunction · 0.36
compressAndVerifyFunction · 0.36
TESTFunction · 0.36