Expand description
CBOR decoder
Functions§
- read_
bytes - Reads
lennumber of bytes from a byte stream. - read_
f32 - Reads a f32 from a byte stream.
- read_
f64 - Reads a f64 from a byte stream.
- read_
link - Reads a cid from a stream of cbor encoded bytes.
- read_
list - Reads a list of any type that implements
TryReadCborfrom a stream of cbor encoded bytes. - read_
major - Read a and validate major “byte”. This includes both the major type and the additional info.
- read_
map - Reads a map of any type that implements
TryReadCborfrom a stream of cbor encoded bytes. - read_
str - Reads
lennumber of bytes from a byte stream and converts them to a string. - read_u8
- Reads a u8 from a byte stream.
- read_
u16 - Reads a u16 from a byte stream.
- read_
u32 - Reads a u32 from a byte stream.
- read_
u64 - Reads a u64 from a byte stream.
- read_
uint - Read the uint argument to the given major type. This function errors if: