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.