⭐️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
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