Function libipld_cbor::decode::read_uint
source · pub fn read_uint<R: Read>(r: &mut R, major: Major) -> Result<u64>
Expand description
Read the uint argument to the given major type. This function errors if:
- The major type doesn’t expect an integer argument.
- The integer argument is not “minimally” encoded per the IPLD spec.