class

CBOR::Lexer

Inherits Reference / Object

Constructors

new(slice : Bytes)
Source
new(io : IO)
Source

Instance methods

next_pair

Read the next pair of tokens, useful for maps. Raises an exception if there are no two pairs left.

Source
next_token
Source
to_negative_int(value : UInt8)

Reads the UInt8 as a negative integer, returning the smallest integer capable of containing the value.

Source
to_negative_int(value : UInt16)

Reads the UInt16 as a negative integer, returning the smallest integer capable of containing the value.

Source
to_negative_int(value : UInt32)

Reads the UInt32 as a negative integer, returning the smallest integer capable of containing the value.

Source
to_negative_int(value : UInt64)

Reads the UInt64 as a negative integer, returning the smallest integer capable of containing the value.

Source