toBytes
Parameters
bitOffset
first bit to start writing
array
array to write into. Bytes are written most-significant byte first. This is the opposite of the internal representation, which is exposed by .getBitArray
offset
position in array to start writing
numBytes
how many bytes to write