Struct zstd::block::Compressor [] [src]

pub struct Compressor { /* fields omitted */ }

Allows to compress independently multiple blocks of data.

This reduces memory usage compared to calling compress multiple times. The compressed blocks are still completely independent.

Methods

impl Compressor
[src]

Creates a new zstd compressor

Creates a new zstd compressor, using the given dictionary.

Compress a single block of data to the given destination buffer.

Returns the number of bytes written, or an error if something happened (for instance if the destination buffer was too small).

Compresses a block of data and returns the compressed result.

Trait Implementations

impl Default for Compressor
[src]

Returns the "default value" for a type. Read more