CBOR::Lexer
Inherits Reference / Object
Constructors
new(slice : Bytes)
Sourcenew(io : IO)
SourceInstance methods
next_pair
Read the next pair of tokens, useful for maps. Raises an exception if there are no two pairs left.
next_token
Sourceto_negative_int(value : UInt8)
Reads the UInt8 as a negative integer, returning the smallest
integer capable of containing the value.
to_negative_int(value : UInt16)
Reads the UInt16 as a negative integer, returning the smallest
integer capable of containing the value.
to_negative_int(value : UInt32)
Reads the UInt32 as a negative integer, returning the smallest
integer capable of containing the value.
to_negative_int(value : UInt64)
Reads the UInt64 as a negative integer, returning the smallest
integer capable of containing the value.