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

47 commits

Author SHA1 Message Date
eba744fca4 fix some subbuffer end handling 2025-09-16 23:39:09 +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
dd1f0f0808 add peek method to read without advancing 2023-10-09 15:02:25 +02:00
5d703405d2 fmt 2023-07-02 17:30:01 +02:00
8dd89486ec clippy fixes 2023-07-02 17:30:01 +02:00
Hussein Ait Lahcen
8a5e7e7df8
fixup: fmt and clippy 2022-08-16 13:51:49 +02:00
Hussein Ait Lahcen
8ba5608262
fixup: decrement before indexing with last_mut 2022-08-12 20:58:16 +02:00
b096c70061 allow creating a writestream from a slice 2022-05-01 15:39:41 +02:00
df4a9b32ac fmt: 2022-05-01 14:50:48 +02:00
Joseph Angelo
1e575b8efc Check endianess when unconditionally reading boolean values 2022-04-30 08:47:38 -07:00
0fe7c04ece type hints in tests 2021-07-27 15:12:42 +02:00
9aba4351ac optimize aligned floats 2021-07-24 18:50:19 +02:00
309a3b1f6f fix box/rc/arc write 2021-07-16 21:15:34 +02:00
9587c7b872 fix reserve not setting bit len correctly 2021-07-16 21:04:07 +02:00
9bced05a9d make write stream borrow the data to allow splitting/reserving 2021-07-14 23:35:13 +02:00
89f9e4f0af write tuple 2021-07-13 20:10:08 +02:00
1fadf092cf read/write array 2021-07-13 19:37:10 +02:00
f5e329ab61 enum roundtrip 2021-07-12 20:46:51 +02:00
f704ee9f9a rountrip tests 2021-07-12 20:19:36 +02:00
62288921ed fix writing unaligned negative numbers 2021-07-12 19:18:56 +02:00
23ed7b0e4a bunch of write stuff 2021-07-12 00:17:56 +02:00
4d2ea4ee7c fix pos when reading malformed utf8 2020-12-06 21:20:33 +01:00
4872cd62c4 add to_owned 2020-12-06 21:02:42 +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
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
55eb866eb6 add unchecked reading to BitRead and BitReadSized 2020-01-07 22:31:29 +01:00
2fd2b49810 fix 2's-completement encoding for non full with signed ints 2019-08-28 02:44:35 +02:00
c3709e57d8 fix signed reading 2019-08-26 20:17:59 +02:00
00e4efec86 'assert' check bounds when reading, fix issue with missing null termination for strings 2019-07-22 18:37:38 +02:00
71823f22ec read for NoZero ints 2019-04-09 20:00:11 +02:00
0a5daeb62d more string reading tests 2019-03-09 16:59:48 +01:00
f1d1737cd9 more benches to it's proper location 2019-03-05 16:02:07 +01:00
bd012039d0 use unchecked type conversions
this is safe because we already checked their bit size
2019-03-03 01:42:56 +01:00
6e36d00c1e implement Debug 2019-02-28 22:34:06 +01:00
ea2640655b fix read_bytes in BE mode 2019-02-28 22:18:38 +01:00
ccced2c28e implement ReadSized for HashMap 2019-02-28 21:19:53 +01:00
4bf39b874d impl ReadSized for BitStream 2019-02-28 17:04:49 +01:00
af83f5e3b3 rename Read to BitRead to avoid confusion with Read trait from std 2019-02-28 16:01:34 +01:00
a49835d003 add test for reading derived Read
this requires moving the tests into their own folder, so they get tested loaded as a separate crate
2019-02-28 00:16:35 +01:00