[−][src]Trait absperf_minilzo::CompressInto
Compression trait. Implemented for [u8], allowing compressing into [u8] and Vec<u8>
Required methods
fn compress_into<'buffer>(
&self,
destination: &'buffer mut T
) -> Result<&'buffer [u8]>
&self,
destination: &'buffer mut T
) -> Result<&'buffer [u8]>
LZO1X compresses into destination, returning a subslice of the compressed data
Implementations on Foreign Types
impl CompressInto<[u8]> for [u8]
[src]
fn compress_into<'buffer>(
&self,
destination: &'buffer mut [u8]
) -> Result<&'buffer [u8]>
[src]
&self,
destination: &'buffer mut [u8]
) -> Result<&'buffer [u8]>
impl CompressInto<Vec<u8>> for [u8]
[src]
fn compress_into<'buffer>(
&self,
destination: &'buffer mut Vec<u8>
) -> Result<&'buffer [u8]>
[src]
&self,
destination: &'buffer mut Vec<u8>
) -> Result<&'buffer [u8]>
Compresses into the indicated vector, automatically resizing it to fit the result. On error, the destination vector's contents likely will be corrupted.