Expand description
Codec utility functions
Functionsยง
- at_
least - Checks if the buffer has at least
lenbytes remaining. Returns an Error::EndOfBuffer if not. - at_
least_ items - Checks if the buffer has at least
len * item_sizebytes remaining, treating multiplication overflow as insufficient. Returns an Error::EndOfBuffer if not. - ensure_
zeros - Ensures the next
sizebytes are all zeroes in the provided buffer, returning an Error otherwise. - read_
fixed_ vec - Reads
lenvalues of a FixedSize type from the buffer into a vector.