Function lz4_flex::block::compress_into
source · pub fn compress_into(
input: &[u8],
output: &mut [u8]
) -> Result<usize, CompressError>
Expand description
Compress all bytes of input
into output
.
The method chooses an appropriate hashtable to lookup duplicates.
output should be preallocated with a size of
get_maximum_output_size
.
Returns the number of bytes written (compressed) into output
.