| 2173 | } |
| 2174 | |
| 2175 | std::shared_ptr<Buffer> DeltaEncode(std::vector<int32_t> lengths) { |
| 2176 | auto encoder = MakeTypedEncoder<Int32Type>(Encoding::DELTA_BINARY_PACKED); |
| 2177 | encoder->Put(lengths.data(), static_cast<int>(lengths.size())); |
| 2178 | return encoder->FlushValues(); |
| 2179 | } |
| 2180 | |
| 2181 | std::shared_ptr<Buffer> DeltaEncode(std::span<const int32_t> lengths) { |
| 2182 | auto encoder = MakeTypedEncoder<Int32Type>(Encoding::DELTA_BINARY_PACKED); |
no test coverage detected