Struct lzma::writer::LzmaWriter [] [src]

pub struct LzmaWriter<T> {
    // some fields omitted
}

Methods

impl<T: Write> LzmaWriter<T>

fn new_compressor(inner: T, preset: u32) -> Result<LzmaWriter<T>, LzmaError>

fn new_decompressor(inner: T) -> Result<LzmaWriter<T>, LzmaError>

fn with_capacity(capacity: usize, inner: T, direction: Direction, preset: u32) -> Result<LzmaWriter<T>, LzmaError>

impl<W: Write> LzmaWriter<W>

fn finish(&mut self) -> Result<(), LzmaError>[]

Finalizes the LZMA stream so that it finishes compressing or decompressing.

This must be called after all writing is done to ensure the last pieces of the compressed or decompressed stream get written out.

Trait Implementations

impl<T> Drop for LzmaWriter<T>

fn drop(&mut self)

impl<W: Write> Write for LzmaWriter<W>

fn write(&mut self, buf: &[u8]) -> Result<usize>

fn flush(&mut self) -> Result<()>

fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>

fn by_ref(&mut self) -> &mut Self

fn broadcast<W>(self, other: W) -> Broadcast<Self, W> where W: Write