Module vector::sinks::util::snappy

source ·
Expand description

An encoder for Snappy compression. Whilst there does exist a Writer implementation for Snappy, this compresses using the Snappy frame format, which is not quite what we want. So instead this encoder buffers the data in a Vec until the end. The raw compressor is then used to compress the data and writes it to the provided writer.

Structs§