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:

  1. The major type doesn’t expect an integer argument.
  2. The integer argument is not “minimally” encoded per the IPLD spec.