Skip to main content

array_len_prefix_len

Function array_len_prefix_len 

Source
pub fn array_len_prefix_len(n: usize, flexible: bool) -> usize
Expand description

Number of bytes consumed by a non-nullable array-length prefix.

ยงPanics

Panics if a value previously validated by the protocol type no longer satisfies its encoded-length or field-range invariant.