Function lz4_flex::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 and calls
compress_into_with_table
. output should be preallocated with a size of
get_maximum_output_size
.
Returns the number of bytes written (compressed) into output
.