Skip to main content

pack_i4

Function pack_i4 

Source
pub fn pack_i4(values: &[i8]) -> Vec<u8> 
Expand description

Packs 4-bit two’s-complement values (each expected to be in -8..=7; out-of-range bits above the low nibble are silently dropped) two-per-byte, low nibble first.