Struct rust_lzo::LZOContext
[−]
[src]
pub struct LZOContext { /* fields omitted */ }
Methods
impl LZOContext
[src]
fn new() -> LZOContext
fn compress(&mut self, input: &[u8], output: &mut Vec<u8>) -> LZOError
compress input
into output
returns an error if the Vec is not large enough
fn compress_to_slice<'a>(
&mut self,
in_: &[u8],
out: &'a mut [u8]
) -> (&'a mut [u8], LZOError)
&mut self,
in_: &[u8],
out: &'a mut [u8]
) -> (&'a mut [u8], LZOError)
returns a slice containing the compressed data
fn decompress_to_slice<'a>(
in_: &[u8],
out: &'a mut [u8]
) -> (&'a mut [u8], LZOError)
in_: &[u8],
out: &'a mut [u8]
) -> (&'a mut [u8], LZOError)
returns a slice containing the decompressed data