1
0
Fork 0
mirror of https://codeberg.org/icewind/bitbuffer.git synced 2026-06-03 16:44:06 +02:00
Commit graph

286 commits

Author SHA1 Message Date
2fe6af6224 clippy fixes 2024-04-03 19:47:06 +02:00
7422800014
Merge pull request #6 from hussein-aitlahcen/master
fixup: decrement before indexing with `last_mut`
2024-04-03 19:45:35 +02:00
834c3f2f95 clippy fixes 2023-11-11 22:03:10 +01:00
042a6a621b test msrv 2023-11-11 21:52:15 +01:00
417e8c2b96 prepare for 0.11 2023-10-09 21:51:46 +02:00
dd1f0f0808 add peek method to read without advancing 2023-10-09 15:02:25 +02:00
3852f09dd5 rewrite derive macro 2023-09-28 18:53:22 +02:00
0701318120 nix ci 2023-07-02 17:37:15 +02:00
5d703405d2 fmt 2023-07-02 17:30:01 +02:00
07dc4686f3 clippy fixes 2023-07-02 17:30:01 +02:00
b0abd91399 derive 0.10.1 2023-07-02 17:30:01 +02:00
8dd89486ec clippy fixes 2023-07-02 17:30:01 +02:00
1310ec3673 supress clippy conversion warnings in derived code 2023-07-02 17:29:59 +02:00
80a1c7cc22
Merge pull request #8 from DCNick3/align
Re-introduce the align function & add #[align] attribute
2023-02-07 16:05:03 +01:00
Nikita Strygin
b9ff371f53 Suppress unused_braces warnings in the generated code 2023-02-06 23:21:16 +03:00
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
Nikita Strygin
35e2a42219 Add align function to BitReadStream and BitWriteStream 2023-02-06 15:00:27 +03:00
8bc758c237 fix reading bool from sub-stream causing position to get out of sub-stream bounds 2022-12-13 14:19:50 +01:00
Hussein Ait Lahcen
8a5e7e7df8
fixup: fmt and clippy 2022-08-16 13:51:49 +02:00
Hussein Ait Lahcen
2e2e532129
fixup: public num_traits 2022-08-14 13:46:56 +02:00
Hussein Ait Lahcen
8ba5608262
fixup: decrement before indexing with last_mut 2022-08-12 20:58:16 +02:00
587d4ac8ef 0.10.8 2022-08-06 16:00:07 +02:00
8066984763 fix Utf8Error::length going out of bounds of sub-buffers 2022-08-06 15:58:12 +02:00
9a4b300875 flake 2022-08-06 15:27:15 +02:00
96c37a0bc3 0.10.7 2022-05-01 15:48:40 +02:00
b096c70061 allow creating a writestream from a slice 2022-05-01 15:39:41 +02:00
f6fb6c6f64 0.10.6 2022-05-01 14:56:27 +02:00
df4a9b32ac fmt: 2022-05-01 14:50:48 +02:00
5e9f0e7a59
Merge pull request #5 from jbangelo/fix-unchecked-bool-endianness
Fix unchecked reading boolean values
2022-05-01 12:50:17 +00:00
Joseph Angelo
1e575b8efc Check endianess when unconditionally reading boolean values 2022-04-30 08:47:38 -07:00
4a3d5820f8 0.10.5 2022-04-09 18:45:29 +02:00
b335f9cfad 0.10.4 2022-04-09 18:41:55 +02:00
bd7a4fca5b clippy fixes 2022-04-09 18:41:39 +02:00
bc5d74038e intoiter 2022-04-09 18:35:35 +02:00
5008cae35d write for Cow 2022-04-09 18:33:39 +02:00
bf27c72389 larger non fit chunks 2021-07-27 18:22:38 +02:00
9d04fbe7cf miri being difficult on purpose to ensure we dont take shortcuts 2021-07-27 17:10:52 +02:00
ed249331e1 unalligned fallback 2021-07-27 16:59:58 +02:00
4557a5babb bool write optimizations 2021-07-27 16:44:41 +02:00
f09b56b36a some 32bit optimizations 2021-07-27 15:52:47 +02:00
0fe7c04ece type hints in tests 2021-07-27 15:12:42 +02:00
6a74d8894e add optional schema 2021-07-25 22:31:46 +02:00
9c3d98dc62 cleanup serde 2021-07-25 14:25:56 +02:00
5ee1a124ce test with all features 2021-07-25 14:14:52 +02:00
d08f92e11b basic serde support 2021-07-25 14:06:15 +02:00
cefc9c3500 0.10.1 2021-07-24 19:15:32 +02:00
33ea27fd67 simplify float handling 2021-07-24 19:10:37 +02:00
9aba4351ac optimize aligned floats 2021-07-24 18:50:19 +02:00