static convertBoolArrayToByteArray(boolArr) {
			let byteArr = new Uint8Array((boolArr.length + 7) / 8);
			for (let i = 0; i < byteArr.length; i++) {
				byteArr[i] = Decoder.readByte(boolArr, 8 * i);
			}
			return byteArr;
		}
Packs a bit array into bytes, most significant bit first