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
9
10
//! `codec` is a *per-type* codec — it needs a newtype (a single-field tuple struct),
//! not a named-field struct: there is exactly one inner value the fn pair carries.
use bnb::bin;

#[bin(codec = bnb::codecs::leb128)]
struct Frame {
    value: u64,
}

fn main() {}