pub fn compress( data: &[u8], compression_type: CompressionType, ) -> Result<Vec<u8>>
Compress data according to the specified compression type