pub fn write_bitmap(bitmap: &mut [u8], active_bits: &[u16]) -> u8
Writes the specific bits in bitmap, given the indices of the bits Return the “length” of the newly constructed bitmap