lz4_flex::block

Function compress_prepend_size

Source
pub fn compress_prepend_size(input: &[u8]) -> Vec<u8>
Expand description

Compress all bytes of input into output. The uncompressed size will be prepended as a little endian u32. Can be used in conjunction with decompress_size_prepended