1 2 3 4 5 6 7 8 9 10 11 12
//! `count_prefix` reads a prefix and sizes the elements it counts — that only makes //! sense on a `Vec<_>` field. Any other type is an error. use bnb::bin; #[bin] struct Frame { tag: bnb::u4, #[brw(count_prefix = u16)] value: u32, } fn main() {}