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

Method ensureHeader

c++/src/Compression.cc:146–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 }
145
146 void CompressionStreamBase::ensureHeader() {
147 // adjust 3 bytes for the compression header
148 for (uint32_t i = 0; i < HEADER_SIZE; ++i) {
149 if (outputPosition >= outputSize) {
150 if (!BufferedOutputStream::Next(reinterpret_cast<void**>(&outputBuffer), &outputSize)) {
151 throw CompressionError("Failed to get next output buffer from output stream.");
152 }
153 outputPosition = 0;
154 }
155 header[i] = outputBuffer + outputPosition;
156 ++outputPosition;
157 }
158 }
159
160 /**
161 * Streaming compression base class

Callers

nothing calls this directly

Calls 1

CompressionErrorClass · 0.85

Tested by

no test coverage detected