Function libipld_cbor::decode::read_map
source ยท pub fn read_map<R: Read + Seek, K: Decode<DagCborCodec> + Ord, T: Decode<DagCborCodec>>(
r: &mut R,
len: u64,
) -> Result<BTreeMap<K, T>>
Expand description
Reads a map of any type that implements TryReadCbor
from a stream of cbor encoded bytes.