rmp::encode

Function write_array_len

Source
pub fn write_array_len<W: RmpWrite>(
    wr: &mut W,
    len: u32,
) -> Result<Marker, ValueWriteError<W::Error>>
Expand description

Encodes and attempts to write the most efficient array length implementation to the given write, returning the marker used.

ยงErrors

This function will return ValueWriteError on any I/O error occurred while writing either the marker or the data.