[][src]Trait libflate::lz77::Lz77Encode

pub trait Lz77Encode {
    fn encode<S>(&mut self, buf: &[u8], sink: S)
    where
        S: Sink
;
fn flush<S>(&mut self, sink: S)
    where
        S: Sink
; fn compression_level(&self) -> CompressionLevel { ... }
fn window_size(&self) -> u16 { ... } }

The LZ77Encode trait defines the interface of LZ77 encoding algorithm.

Required Methods

Encodes a buffer and writes result LZ77 codes to sink.

Flushes the encoder, ensuring that all intermediately buffered codes are consumed by sink.

Provided Methods

Returns the compression level of the encoder.

If the implementation is omitted, CompressionLevel::Balance will be returned.

Returns the window size of the encoder.

If the implementation is omitted, MAX_WINDOW_SIZE will be returned.

Implementors

impl Lz77Encode for DefaultLz77Encoder
[src]

impl Lz77Encode for NoCompressionLz77Encoder
[src]