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

112 commits

Author SHA1 Message Date
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
f476a78971 error handling in examples 2019-02-27 18:01:56 +01:00
3f77c851b3 doc improvements 2019-02-27 17:21:03 +01:00
35b0325222 use vectors as byte source in examples 2019-02-27 16:43:47 +01:00
eec0b7a778 simplify stream constructor 2019-02-27 16:26:41 +01:00
eee2cf5c43 remove padded optimization for the sake of api cleanness 2019-02-27 16:21:04 +01:00
c39b8675ac make the buffer take ownership of the data, use Rc to get multiple streams of a buffer 2019-02-27 16:15:23 +01:00
8d09284040 implement read for Option<T> and Vec<T> 2019-02-27 13:59:15 +01:00
ad56d05dbe add traits that allow for reading arbitrary types from stream 2019-02-27 12:41:49 +01:00
deafc90b74 rename read -> read_int 2019-02-27 12:17:56 +01:00
dcaba5b98e fix position tracking with string reading 2019-02-23 19:10:13 +01:00
79bc6d5914 add string reading 2019-02-23 17:53:28 +01:00
25ef347e83 0.2.0 2019-02-23 16:06:53 +01:00
1db817c70c more efficient way of getting a usize from byte slice 2019-02-23 15:56:48 +01:00
5a188cb2c5 split code 2019-02-23 14:36:25 +01:00
7cd64b9ad7 add bitstream 2019-02-22 23:42:13 +01:00
aba52326be format 2019-02-22 22:49:35 +01:00
7f491a7793 switch licence to apache/mit 2019-02-22 22:47:56 +01:00
b8d6e4fd7a make usable with rust stable 2019-02-22 22:40:45 +01:00
26bc7f9350 rename to IsPadded 2019-02-22 22:35:01 +01:00
57b99b2ecc bit more docs and more verbose panic 2019-02-22 22:26:32 +01:00
a26695861e add padded version of reader 2019-02-22 22:19:04 +01:00
b0d290311c format 2019-02-22 14:40:11 +01:00
159ee1df6c rename to bitstream_reader 2019-02-21 22:54:32 +01:00
ed19848d2a fix read_bytes and read_bool 2019-02-21 18:18:18 +01:00
6d999f7471 remove need for padding from input slice
this makes reading slower but the api a lot nicer
2019-02-20 22:28:51 +01:00