Struct redux::codec::Codec [] [src]

pub struct Codec { /* fields omitted */ }

The current state of the encoder and decoder.

Methods

impl Codec
[src]

Creates and initializes the codec for encoding or decoding.

Compresses a symbol and outputs some bits depending on the state of the codec.

Compresses an entire byte stream outputting the EOF symbol and all bits for unambigous encoding.

Decompresses a symbol reading some bits until the symbol can be decoded.

Decompresses a whole bit stream until the EOF symbol is found.