Function rmp::decode::read_map_size [] [src]

pub fn read_map_size<R>(rd: &mut R) -> Result<u32, ValueReadError> where R: Read

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.