1
0
Fork 0
mirror of https://codeberg.org/icewind/bitbuffer.git synced 2026-06-04 00:54:07 +02:00
Commit graph

12 commits

Author SHA1 Message Date
3852f09dd5 rewrite derive macro 2023-09-28 18:53:22 +02:00
Nikita Strygin
f6e31f99d9 Implement #[align] in BinWrite 2023-02-06 22:22:39 +03:00
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
eb4bafc310 use the smallest possible size int for descriminant reading/writing 2021-07-24 17:34:29 +02:00
9bced05a9d make write stream borrow the data to allow splitting/reserving 2021-07-14 23:35:13 +02:00
b7fa549e79 fix size expressions 2021-07-13 19:10:09 +02:00
23ed7b0e4a bunch of write stuff 2021-07-12 00:17:56 +02:00
0c8d2ebe18 borrow data 2020-12-05 22:48:40 +01:00
8830e8a382 rename fixes 2020-02-13 17:27:24 +01:00
8979354c60 writing wip and bool be read fixes 2020-02-13 02:33:05 +01:00
6fc3785fc9 rename bitbuffer/bitstream to bitreadbuffer/bitreadstream 2020-02-12 23:53:59 +01:00
0e58b89ae9 rename to bitbuffer to prepare for writing 2020-02-12 23:52:08 +01:00