Function rmp::encode::write_array_len [] [src]

pub fn write_array_len<W>(wr: &mut W, len: u32) -> Result<Marker, ValueWriteError> where W: Write

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, except the EINTR, which is handled internally.