Skip to main content

put_array_len

Function put_array_len 

Source
pub fn put_array_len<B: BufMut>(buf: &mut B, n: usize, flexible: bool)
Expand description

Writes 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.