pub fn compress(
    page: EncodedPage,
    compressed_buffer: Vec<u8>,
    compression: CompressionOptions
) -> Result<CompressedPage>
Expand description

Compresses an EncodedPage into a CompressedPage using compressed_buffer as the intermediary buffer.

compressed_buffer is taken by value because it becomes owned by CompressedPage

Errors

Errors if the compressor fails