Gets the value of a bit in a byte array.
Essentially, this is using a byte array as a bit array. For example, if offset
is 11, it will return the 3rd bit of the 2nd
byte.
offset |
The offset in bits. |
data |
The byte array. |
|