Struct libflate::lz77::Lz77Decoder[][src]

pub struct Lz77Decoder { /* fields omitted */ }

LZ77 decoder.

Implementations

impl Lz77Decoder[src]

pub fn new() -> Lz77Decoder

Notable traits for Lz77Decoder

impl Read for Lz77Decoder
[src]

Makes a new Lz77Decoder instance.

pub fn decode(&mut self, code: Code) -> Result<(), Error>[src]

Decodes a Code.

The decoded bytes are appended to the buffer of Lz77Decoder.

pub fn extend_from_reader<R>(&mut self, reader: R) -> Result<usize, Error> where
    R: Read
[src]

Appends the bytes read from reader to the buffer of Lz77Decoder.

pub fn extend_from_slice(&mut self, buf: &[u8])[src]

Appends the given bytes to the buffer of Lz77Decoder.

pub fn clear(&mut self)[src]

Clears the buffer of Lz77Decoder.

pub fn buffer(&self) -> &[u8][src]

Returns the buffer of Lz77Decoder.

Trait Implementations

impl Debug for Lz77Decoder[src]

impl Default for Lz77Decoder[src]

impl Read for Lz77Decoder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.