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

Method Init

cpp/src/arrow/util/compression_bz2.cc:165–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 }
164
165 Status Init() {
166 DCHECK(!initialized_);
167 memset(&stream_, 0, sizeof(stream_));
168 int ret;
169 ret = BZ2_bzCompressInit(&stream_, compression_level_, 0, 0);
170 if (ret != BZ_OK) {
171 return BZ2Error("bz2 compressor init failed: ", ret);
172 }
173 initialized_ = true;
174 return Status::OK();
175 }
176
177 Result<CompressResult> Compress(int64_t input_len, const uint8_t* input,
178 int64_t output_len, uint8_t* output) override {

Callers 2

MakeCompressorMethod · 0.45
MakeDecompressorMethod · 0.45

Calls 2

BZ2ErrorFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected