Skip to main content

pamoja_serial_cobs_max_encoded_len

Function pamoja_serial_cobs_max_encoded_len 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_serial_cobs_max_encoded_len( payload_len: usize, ) -> usize
Expand description

Returns the largest COBS frame a payload of payload_len bytes can produce.

ยงReturns

The worst-case encoded length, one overhead byte per 254 plus the delimiter.