Registry / serialization / bitstream-io

bitstream-io

JSON →
library4.10.0rscratesunverified

A library for reading and writing unaligned values from/to streams in big-endian and little-endian formats.

# Cargo.toml [dependencies] bitstream-io = "4.10.0"
INSTALL
IMPORT
SIG · BITSTREAM-IO
B
bitstream-io
serializationrustv4.10.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BitReader
use bitstream_io::BitReader;

Reads a single bit from a byte slice using big-endian order.

use bitstream_io::{BitReader, BigEndian}; fn main() -> Result<(), Box<dyn std::error::Error>> { let data = vec![0b10101010u8]; let mut reader = BitReader::endian(data.as_slice(), BigEndian); let bit: u8 = reader.read_bit()?; println!("First bit: {}", bit); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.10.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
20
Meta
1
OpenAI (training)
1
Resources
bitstream-io — cargo add bitstream-io · libregistry