https://github.com/nelsongillo/bitwise-io
buffered bitwise input/output
https://github.com/nelsongillo/bitwise-io
bitwise input-output rust-lang rust-library
Last synced: about 1 year ago
JSON representation
buffered bitwise input/output
- Host: GitHub
- URL: https://github.com/nelsongillo/bitwise-io
- Owner: nelsongillo
- License: mit
- Created: 2021-01-29T12:38:04.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-29T20:58:38.000Z (over 5 years ago)
- Last Synced: 2025-03-28T02:48:27.891Z (about 1 year ago)
- Topics: bitwise, input-output, rust-lang, rust-library
- Language: Rust
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bitwise-io
A Rust Library that enables you to read/write single bits from/to a stream
## Install
Add this to your `Cargo.toml`
```toml
[dependencies]
bitwise-io = "0.1.2"
```
## 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).