For example, if you ask [the ios] to read 11 bits
starting from the offset 52, it assumes the bit read at
offset 52 is the 7th bit. At offset 53 is the 6th bit. ...
At offset 59 is the 0th bit and then at offset 60 is the
10th bit... Lastly, it reads at offset 62 the 8th bit. If
you want me to change this logic, I am not sure what to
replace it with.
Shall I assume that each byte I read is ordered in
itself? Then the same case of reading 11 bits starting from
the offset 52 would become the following:
At offset 52 we read the 3rd bit. At offset 53, we read
the 2nd... At offset 55 is the bit 0.
At 56 is 10th bit ... and lastly at offset 62 is the bit
4th.