google / emboss

Emboss is a tool for generating code that reads and writes binary data structures.
Apache License 2.0
70 stars 21 forks source link

Support High-Bit-Zero Numbering on `bits` #42

Open reventlov opened 2 years ago

reventlov commented 2 years ago

A number of big-endian protocols number bits with bit 0 as the highest-order/first-read bit. This seems to be particularly common in protocols that are expressed in terms of bitstreams.

Emboss should provide a way to allow bits to be addressed with bit 0 as the highest-order bit.