Skip to main content

PAMOJA_SERIAL_FRAME_MAX

Constant PAMOJA_SERIAL_FRAME_MAX 

Source
pub const PAMOJA_SERIAL_FRAME_MAX: usize = 2048;
Expand description

The largest payload, in bytes, that a streaming decoder will reassemble.

The Rust decoders are generic over their capacity, which cannot cross a C ABI, so the decoders here are built at one documented size. It covers the 1500-byte maximum a serial link conventionally carries, with room to spare; a frame longer than this is discarded rather than truncated. A caller who needs a different bound has the Rust crate.