MCPcopy Create free account
hub / github.com/apache/arrow / Init

Method Init

cpp/src/arrow/util/compression_lz4.cc:144–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 }
143
144 Status Init() {
145 LZ4F_errorCode_t ret;
146 prefs_ = PreferencesWithCompressionLevel(compression_level_);
147 first_time_ = true;
148
149 ret = LZ4F_createCompressionContext(&ctx_, LZ4F_VERSION);
150 if (LZ4F_isError(ret)) {
151 return LZ4Error(ret, "LZ4 init failed: ");
152 } else {
153 return Status::OK();
154 }
155 }
156
157#define BEGIN_COMPRESS(dst, dst_capacity, output_too_small) \
158 if (first_time_) { \

Callers 2

MakeCompressorMethod · 0.45
MakeDecompressorMethod · 0.45

Calls 3

LZ4ErrorFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected