1
0
Fork 0
mirror of https://codeberg.org/icewind/bitbuffer.git synced 2026-06-03 16:44:06 +02:00
bitbuffer/bitbuffer_derive
Nikita Strygin e33aa2f776 Add #[align] attribute to structs
This attribute aligns the reader to byte boundary

It can be applied to enums & structs to align before reading any fields or the discriminant

It can also be applied to individual struct fields to align the reader before reading the field

Finally, you can apply it to non-unit enum variants to align the reader after reading the discriminant, but before reading the payload
2023-02-06 15:49:33 +03:00
..
src Add #[align] attribute to structs 2023-02-06 15:49:33 +03:00
tests Add #[align] attribute to structs 2023-02-06 15:49:33 +03:00
Cargo.toml remove full reserve 2021-07-24 16:25:25 +02:00