Robbepop / modular-bitfield

Macro to generate bitfields for structs that allow for modular use of enums.
Apache License 2.0
159 stars 41 forks source link

Provide bit layout diagrams #7

Closed dtolnay closed 5 years ago

dtolnay commented 5 years ago

Details about endianness are not self-explanatory from the readme code sample. The code shows that we can put data in and take the same data out, but not how to think about the data representation in memory which would be important for using modular-bitfield to communicate with other systems.

Robbepop commented 5 years ago

Implemented by https://github.com/Robbepop/modular-bitfield/commit/02c88b3bb781bacf18fd0c6914ca28d70403dcc5.