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

Method Compress

cpp/src/arrow/util/compression_snappy.cc:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 Result<int64_t> Compress(int64_t input_len, const uint8_t* input,
71 int64_t ARROW_ARG_UNUSED(output_buffer_len),
72 uint8_t* output_buffer) override {
73 size_t output_size;
74 snappy::RawCompress(reinterpret_cast<const char*>(input),
75 static_cast<size_t>(input_len),
76 reinterpret_cast<char*>(output_buffer), &output_size);
77 return static_cast<int64_t>(output_size);
78 }
79
80 Result<std::shared_ptr<Compressor>> MakeCompressor() override {
81 return Status::NotImplemented("Streaming compression unsupported with Snappy");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected