| 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"); |
nothing calls this directly
no outgoing calls
no test coverage detected