Reads and checks a length before any slice or allocation. A one-byte length that fits stays inline; anything else, including every failure, takes read_long_length.
Signature
read_length :: (r: *Reader) -> s64
Reads and checks a length before any slice or allocation. A one-byte length that fits stays inline; anything else, including every failure, takes read_long_length.
read_length :: (r: *Reader) -> s64