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

87 commits

Author SHA1 Message Date
18cd799a9b remove unneeded extra bounds check when reading boolean 2019-03-16 13:49:33 +01:00
bb54b1c917 add feature to disable checking strings for valid utf8 2019-03-09 16:59:48 +01:00
1c82edd402 no need to trim dynamic length strings 2019-03-09 16:59:48 +01:00
0a5daeb62d more string reading tests 2019-03-09 16:59:48 +01:00
be50e68461 bench string reading 2019-03-09 16:59:48 +01:00
e5f22e11af 0.4.0 2019-03-09 16:59:48 +01:00
f7567ec2aa 0.4.0 2019-03-05 21:46:47 +01:00
833213f640 inline for more compile time checks 2019-03-05 17:04:26 +01:00
8342290cc6 inline count check 2019-03-05 16:23:44 +01:00
f1d1737cd9 more benches to it's proper location 2019-03-05 16:02:07 +01:00
f54d8748ad some docs 2019-03-05 16:01:55 +01:00
aeec13ceec docs for lazy structs 2019-03-03 21:38:01 +01:00
f96bd78f30 adds structs that allow lazy reading of values 2019-03-03 17:58:39 +01:00
fe91298c1f allow deriving BitSize and BitSizeSized 2019-03-03 17:16:27 +01:00
fe95592d57 add traits for determining the number of bits required to read a type 2019-03-03 16:46:47 +01:00
be689d05a4 remove note after stream performance following optimizations 2019-03-03 14:14:12 +01:00
383376f5f0 remove extra bounds check in stream
this is done by
 - making the buffer cloneable
 - allow getting a clone of the buffer with a shorter length
 - use the shorter buffer when reading a sub-stream

that way the bounds checks in the buffer are enough to bounds check sub-streams
2019-03-03 14:06:17 +01:00
984dfdce62 extra comment for reading string bytes 2019-03-03 13:44:57 +01:00
2a2317cbee remove unneeded result 2019-03-03 13:40:38 +01:00
48a0c85d19 format 2019-03-03 02:33:59 +01:00
efcf31d596 faster byte_index
this can overflow the buffer when reading the initial bytes,
but we'll only uses the bytes that are part of the stream
2019-03-03 02:20:55 +01:00
589928921e move bounds check to higher functions 2019-03-03 02:16:03 +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
8fdcd6b4c4 optimize dynamic length string reading 2019-03-03 00:24:03 +01:00
c571326ed7 allow wildcard in enum parsing 2019-03-01 23:07:29 +01:00
8c378089ca 0.3.1 2019-03-01 13:25:17 +01:00
b150308d6a allow deriving traits for struct with endianness 2019-02-28 23:17:16 +01:00
6e36d00c1e implement Debug 2019-02-28 22:34:06 +01:00
29ca7e359e impl ReadSized for Option<T> 2019-02-28 22:23:11 +01:00
92b5763aea allow for simple math in size reference 2019-02-28 22:19:04 +01:00
ea2640655b fix read_bytes in BE mode 2019-02-28 22:18:38 +01:00
5e7a68a57e impl Clone for BitStream 2019-02-28 21:56:01 +01:00
ccced2c28e implement ReadSized for HashMap 2019-02-28 21:19:53 +01:00
ddce420663 update readme 2019-02-28 20:49:56 +01:00
20b5ed59af add travis config 2019-02-28 20:34:59 +01:00
47df4fd310 expand crate level example 2019-02-28 20:33:01 +01:00
a2b0d4ffb4 allow deriving BitReadSized for enums 2019-02-28 20:24:43 +01:00
5ec499f42f allow BitReadSized to be derived 2019-02-28 19:47:12 +01:00
c145761970 more documentation for derive 2019-02-28 19:30:33 +01:00
8ad8d07dd5 allow deriving BitRead for enums 2019-02-28 19:05:23 +01:00
f96f44a590 improve span handling a bit 2019-02-28 17:28:37 +01:00
a5206f06e4 specify bitstream_reader version 2019-02-28 17:06:47 +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
b45ca3856e docs for derive 2019-02-28 00:12:24 +01:00
8a19225d61 add derive macro for Read 2019-02-27 23:53:17 +01:00
523f7a3253 add licence part to readme 2019-02-27 18:46:37 +01:00
bedeec3d26 better error type 2019-02-27 18:36:38 +01:00
f5e5fe54d1 impl From 2019-02-27 18:22:50 +01:00