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
11
12
//! `#[bin(forward_only)]` pins a `Source`-only bound, so `#[br(seek = …)]` (which
//! needs to seek) is a compile error — symmetric with `restore_position`.
use bnb::bin;

#[bin(forward_only)]
struct Frame {
    ptr: u8,
    #[br(seek = 16u32)]
    target: u8,
}

fn main() {}