Function rmp::encode::write_map_len
source · pub fn write_map_len<W: RmpWrite>(
wr: &mut W,
len: u32,
) -> Result<Marker, ValueWriteError<W::Error>>
Expand description
Encodes and attempts to write the most efficient map 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.