Function max_encoding_overhead

Source
pub const fn max_encoding_overhead(source_len: usize) -> usize
Expand description

Calculates the maximum overhead when encoding a message with the given length. The overhead is a maximum of [n/254] bytes (one in 254 bytes) rounded up.