pub fn compress_internal<F>(
    data: &[u16],
    bits_per_char: u8,
    to_char: F
) -> Vec<u16>where
    F: Fn(u16) -> u16,
Expand description

The internal function for compressing data.

All other compression functions are built on top of this. It generally should not be used directly.