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

308 commits

Author SHA1 Message Date
4799d26f0b add main to readme example 2025-05-23 23:27:02 +02:00
b89c4782e8 fix readme code highlighting 2025-05-23 23:25:27 +02:00
cbbe5f6b0b update repo url 2025-05-23 23:20:14 +02:00
ee93457cc9 workflow updates 2025-05-23 23:20:14 +02:00
acb6265b83 flake updates 2025-05-23 23:20:14 +02:00
089be072be derive 0.11.2 2025-02-23 23:16:33 +01:00
1afeb1d4ca 0.11.1 2025-02-23 22:50:04 +01:00
19cd4f38ef updates 2025-02-23 22:42:59 +01:00
ea2cd36877 clippy fixes 2025-02-23 22:33:20 +01:00
7c85646c73 flake updates 2025-02-23 22:25:55 +01:00
d6ea837c4e derive: dont try to parse attributes from outside the crate 2025-02-23 22:25:42 +01:00
0b781fa64a
Merge pull request #11 from DCNick3/2024-edition
fix `unsafe_op_in_unsafe_fn` in generated code on 2024 edition
2025-02-23 22:20:23 +01:00
⭐️NINIKA⭐️
1c05418784 prevent generated code from triggering unsafe_op_in_unsafe_fn in 2024 edition
wrap the usage of "unchecked" methods in unsafe blocks
2025-02-20 22:09:30 +03:00
5a4c1e6950 update gitignore 2024-11-03 18:44:46 +01:00
029d7c533f add tests for read sizes 2024-11-03 18:33:57 +01:00
589f355325 implement BitReadSized for wrapper types 2024-11-03 18:33:31 +01:00
25e7d443b5 switch flake setup 2024-09-28 22:49:31 +02:00
d989565775 updates 2024-09-22 23:20:57 +02:00
5080caa936 docs 2024-04-04 23:11:14 +02:00
9171f87a4a update dependencies 2024-04-04 22:57:03 +02:00
efed5a68cb fix reading large signed ints 2024-04-04 22:55:06 +02:00
b46bc881f0 fix writing larger int types in big endian 2024-04-04 19:39:30 +02:00
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