toBytes(bitOffset /*int*/, array, offset /*int*/, numBytes /*int*/) {
			for (let i = 0; i < numBytes; i++) {
				let theByte = 0;
				for (let j = 0; j < 8; j++) {
					if (this.get(bitOffset)) {
						theByte |= 1 << (7 - j);
					}
					bitOffset++;
				}
				array[offset + i] = /*(byte)*/ theByte;
			}
		}
@param bitOffset first bit to start writing
@param array array to write into. Bytes are written most-significant byte first. This is the opposite
 of the internal representation, which is exposed by {@link #getBitArray()}
@param offset position in array to start writing
@param numBytes how many bytes to write