#bit-manipulation #io #bitstream

bitwise-io

buffered bitwise input/output

1 unstable release

0.1.2 Jan 29, 2021
0.1.1 Jan 29, 2021
0.1.0 Jan 29, 2021

#6 in #bitwise

21 downloads per month

MIT license

11KB
252 lines

bitwise-io

A Rust Library that enables you to read/write single bits from/to a stream

Install

Add this to your Cargo.toml

[dependencies]
bitwise-io = "0.1.0"

Internal

Reader

The BitReader wraps a BufRead Trait and a position indicator for the next bit.

Writer

The BitWriter wraps the Write Trait and has an internal buffer of 1024 bytes (8192 bits).

No runtime deps