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

164 commits

Author SHA1 Message Date
5bd8313a51 minor read bool improvement 2021-07-18 20:04:26 +02:00
94bc320add move benches to iai 2021-07-18 19:55:45 +02:00
c090180a14 add reserve_byte_length 2021-07-18 16:37:35 +02:00
ceea28d500 add bitwrite for vec 2021-07-18 15:06:25 +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
9bd7b255cb fix reserve 2021-07-16 18:55:43 +02:00
1ace766dda doc updates 2021-07-15 23:10:42 +02:00
ac3c7ab32a more write work 2021-07-15 22:44:37 +02:00
9bced05a9d make write stream borrow the data to allow splitting/reserving 2021-07-14 23:35:13 +02:00
3bc1ece2ab clippy fix 2021-07-14 00:23:32 +02:00
3f53a8e438 partialeq 2021-07-14 00:21:05 +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
55386818eb clippy fix 2021-07-12 20:28:58 +02:00
f873005046 more write fixes 2021-07-12 20:19:09 +02:00
dddb91fd6b fix reading offset string in big endian 2021-07-12 20:10:13 +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
51faeababf cow 2020-12-06 17:35:03 +01:00
2ab7a2216e remove extra indirection 2020-12-06 01:11:54 +01:00
ffe2f350fb remove branch from hot code 2020-12-06 01:07:26 +01:00
65f3280b1b new_owned 2020-12-06 00:55:39 +01:00
9f5a9c5391 cow data 2020-12-06 00:19:33 +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
bce35aeb32 better IntoBytes 2020-02-15 14:51:28 +01:00
123223f479 optimize push_bits 2020-02-15 14:08:54 +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
9ddbc51fd7 setup github actions ci 2020-02-13 00:05:51 +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
7e4830c66f dont panic when reading 0 length signed int 2020-01-20 16:01:05 +01:00
aa42c955ce fix skip_bits check when skipping to the end of the stream 2020-01-19 22:32:51 +01:00
894c8aef7c harden against dos with crafted input by limiting reserved vec/map size 2020-01-19 22:09:57 +01:00
4ab65a675f dont split string inside utf8 char 2020-01-19 21:53:03 +01:00
7bc5ef8759 fix bounds debug assert 2020-01-19 21:41:23 +01:00
f33d4b5850 fix read_string being able to set stream position outside bounds when using sub streams 2020-01-19 21:22:53 +01:00
a6d9931641 fix read_bool being able to set stream position outside bounds when using sub streams 2020-01-19 21:12:17 +01:00
77fbba7e5b fix skip_bits being able to cause panics by setting self.pos outside the stream bounds 2020-01-19 20:25:55 +01:00
841fdf7828 unchecked cleanup 2020-01-08 18:39:42 +01:00
758bba200b clippy 2020-01-07 23:12:27 +01:00
9596419833 remove seperate bitskip trait 2020-01-07 22:58:07 +01:00
a6e9b59ece derive unchecked methods for traits 2020-01-07 22:38:28 +01:00
55eb866eb6 add unchecked reading to BitRead and BitReadSized 2020-01-07 22:31:29 +01:00
28b1d15bff remove seperate BitSize traits 2020-01-07 21:59:05 +01:00