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

Method Decompress

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

Source from the content-addressed store, hash-verified

342 : compression_level) {}
343
344 Result<int64_t> Decompress(int64_t input_len, const uint8_t* input,
345 int64_t output_buffer_len, uint8_t* output_buffer) override {
346 int64_t decompressed_size = LZ4_decompress_safe(
347 reinterpret_cast<const char*>(input), reinterpret_cast<char*>(output_buffer),
348 static_cast<int>(input_len), static_cast<int>(output_buffer_len));
349 if (decompressed_size < 0) {
350 return Status::IOError("Corrupt Lz4 compressed data.");
351 }
352 return decompressed_size;
353 }
354
355 int64_t MaxCompressedLen(int64_t input_len,
356 const uint8_t* ARROW_ARG_UNUSED(input)) override {

Callers 8

StreamingDecompressionFunction · 0.45
ReferenceDecompressionFunction · 0.45
CheckCodecRoundtripFunction · 0.45
CheckStreamingCompressorFunction · 0.45
TESTFunction · 0.45
TEST_PFunction · 0.45
DecompressIfNeededMethod · 0.45

Calls 1

IOErrorFunction · 0.85

Tested by 5

CheckCodecRoundtripFunction · 0.36
CheckStreamingCompressorFunction · 0.36
TESTFunction · 0.36
TEST_PFunction · 0.36