Skip to main content

LENGTH_PREFIX

Constant LENGTH_PREFIX 

Source
pub const LENGTH_PREFIX: usize = 2;
Expand description

Zenoh’s own framing on the data path: a two-byte little-endian length before every batch, which the driver strips before the medium and re-adds after (docs/architecture.md §4.1). Stated here because a batch of N bytes puts N - 2 on the medium, and every document that names a max_batch_size has to add it back — the contract’s Capabilities does.