bitsandbytes 0.3.2

An owned, bit-aware binary codec: fast bit/byte field types and the unified #[bin] macro.
Documentation
1
2
3
4
5
6
7
8
//! The whole-message options don't apply to a codec newtype — the codec functions own
//! the framing (put a magic inside the fns, or use a full `#[bin]` struct).
use bnb::bin;

#[bin(codec = bnb::codecs::leb128, magic = 0xCAFEu16)]
struct Varint(u64);

fn main() {}