Expand description

CBOR decoder

Functions

Reads len number of bytes from a byte stream.

Reads a f32 from a byte stream.

Reads a f64 from a byte stream.

Reads a cid from a stream of cbor encoded bytes.

Reads a list of any type that implements TryReadCbor from a stream of cbor encoded bytes.

Read a and validate major “byte”. This includes both the major type and the additional info.

Reads a map of any type that implements TryReadCbor from a stream of cbor encoded bytes.

Reads len number of bytes from a byte stream and converts them to a string.

Reads a u8 from a byte stream.

Reads a u16 from a byte stream.

Reads a u32 from a byte stream.

Reads a u64 from a byte stream.

Read the uint argument to the given major type. This function errors if: