Function rmp::decode::read_map_len
source · pub fn read_map_len<R: RmpRead>(
rd: &mut R,
) -> Result<u32, ValueReadError<R::Error>>
Expand description
Attempts to read up to 5 bytes from the given reader and to decode them as a big-endian u32 map size.
Map format family stores a sequence of elements in 1, 3, or 5 bytes of extra bytes in addition to the elements.
§Note
This function will silently retry on every EINTR received from the underlying Read
until
successful read.