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

248 commits

Author SHA1 Message Date
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
c33a9a711b add big endian 2019-02-20 19:47:09 +01:00
b804b4a59e float reading 2019-02-19 21:45:17 +01:00
348fbb851b cleanup reading a bit 2019-02-17 23:08:20 +01:00
64f24a2921 docs 2019-02-17 17:04:15 +01:00
4a8f0e1db6 fix reads that dont fit in usize 2019-02-17 14:59:23 +01:00
82f57e36c5
Create LICENSE 2019-02-17 01:47:04 +01:00
540d9c0e8a combine signed reading 2019-02-17 01:40:48 +01:00
1c037528f6 generics 2019-02-17 00:12:38 +01:00
74124393be bool and u64 2019-02-16 18:05:32 +01:00
f5aff2cd80 usize reading 2019-02-14 22:29:03 +01:00
741f987833 read usize at once 2019-02-13 13:13:36 +01:00
8d38830adc basics 2019-02-12 21:22:24 +01:00