1
0
Fork 0
mirror of https://codeberg.org/icewind/bitbuffer.git synced 2026-06-03 16:44:06 +02:00
bitbuffer/bitbuffer_derive/tests
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
..
expand.rs use the smallest possible size int for descriminant reading/writing 2021-07-24 17:34:29 +02:00
read.rs Add #[align] attribute to structs 2023-02-06 15:49:33 +03:00
write.rs make write stream borrow the data to allow splitting/reserving 2021-07-14 23:35:13 +02:00