Skip to main content

pamoja_serial_slip_max_encoded_len

Function pamoja_serial_slip_max_encoded_len 

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

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

ยงReturns

The worst-case encoded length, which is every byte escaped plus the delimiter.