hit9 / bitproto

The bit level data interchange format for serializing data structures (long term maintenance).
https://bitproto.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
127 stars 16 forks source link

Image on the Readme.md does not respresent what the library is doing #54

Closed lligallo closed 1 year ago

lligallo commented 1 year ago

The description is: message Data { uint3 the = 1 uint3 bit = 2 uint5 level = 3 uint4 data = 4 uint11 interchange = 6 uint6 format = 7 }

data-encoding-sample

As far as I understood, from playing with the python generated code, the 3 bits of 'the' won't be the 3 MSB of the first bytes, they would be the 3 LSB for the first byte. So the image should be:

data-encoding-sample_drawn

Is that correct?

hit9 commented 1 year ago

interesting question.

how about this?

This figures that the lower bit end is on the left side.

image

lligallo commented 1 year ago

Hey, simple and clear. Little endian explained in one sec. :) Thanks for responding Congrats on the project