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

Method init

c++/src/Compression.cc:358–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356#endif
357
358 void ZlibCompressionStream::init() {
359 strm_.zalloc = nullptr;
360 strm_.zfree = nullptr;
361 strm_.opaque = nullptr;
362 strm_.next_in = nullptr;
363
364 if (deflateInit2(&strm_, level, Z_DEFLATED, -15, 8, Z_DEFAULT_STRATEGY) != Z_OK) {
365 throw CompressionError("Error while calling deflateInit2() for zlib.");
366 }
367 }
368
369 void ZlibCompressionStream::end() {
370 (void)deflateEnd(&strm_);

Callers 3

Lz4CompressionSteamMethod · 0.45
ZSTDCompressionStreamMethod · 0.45
Compression.ccFile · 0.45

Calls 1

CompressionErrorClass · 0.85

Tested by

no test coverage detected