[][src]Function rmp::encode::write_bin_len

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

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

This function is useful when you want to get full control for writing the data itself, for example, when using non-blocking socket.

Errors

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