pub fn comp_encode(s: &[i16], d: &mut [u8]) -> boolExpand description
Encode small integers into bytes using a compressed (Golomb-Rice) format.
Encode the provided source values s with compressed encoding. If
any of the source values is larger than 2047 (in absolute value),
then this function returns false. If the destination buffer d is
not large enough, then this function returns false. Otherwise, all
output buffer bytes are set (padding bits/bytes of value zero are
appended if necessary) and this function returns true.