pub fn convertBoolArrayToByteArray(bool_arr: &[bool]) -> Vec<u8> ⓘ
Packs a bit array into bytes, most significant bit first