pub fn decode_bitmask(mask: &[u8], offset: u16) -> Vec<u16>
Decodes a bit mask: bit n of the mask is value n + offset.
n
n + offset