Nikita Strygin
f6e31f99d9
Implement #[align] in BinWrite
2023-02-06 22:22:39 +03:00
Nikita Strygin
b74c46afca
Add #[align] to docs
2023-02-06 16:02:46 +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
bd7a4fca5b
clippy fixes
2022-04-09 18:41:39 +02:00
eb4bafc310
use the smallest possible size int for descriminant reading/writing
2021-07-24 17:34:29 +02:00
2a1718b5f6
remove full reserve
...
this makes code a lot simpler
2021-07-24 16:25:25 +02:00
0e5e7cc312
0.9
2021-07-15 23:10:55 +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
f704ee9f9a
rountrip tests
2021-07-12 20:19:36 +02:00
23ed7b0e4a
bunch of write stuff
2021-07-12 00:17:56 +02:00
01ff3b503a
clippy
2020-12-06 01:14:53 +01:00
a3921ef4e6
0.8.0
2020-12-06 01:08:53 +01:00
0c8d2ebe18
borrow data
2020-12-05 22:48:40 +01:00
a276e5a457
remove the need for padding by special casing reading near the end of the data
2020-12-05 21:41:32 +01:00
e43b0b6bb2
add write bytes and string and rename ReadError -> BitError
2020-02-15 15:49:49 +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