pub fn compress(
page: Page,
compressed_buffer: Vec<u8>,
compression: CompressionOptions
) -> Result<CompressedPage, Error>
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