pub fn compress_block(data: &[u8]) -> Result<Vec<u8>>Expand description
Compress a block using LZ4.
Returns the compressed data with the 8-byte header, or the original data if compression didn’t achieve meaningful savings.
§Errors
Returns an error if the data exceeds u32::MAX bytes.