pub fn compress_to_vec(input: &[u8], level: u8) -> Vec<u8>
Compress the input data to a vector, using the specified compression level (0-10).