class CBOR::Decoder

Defined in:

cbor/decoder.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

to_cbor(io : IO)
to_cbor(encoder : CBOR::Encoder)
to_cbor : Bytes
to_cbor

Class methods inherited from class Object

from_cbor(string_or_io) from_cbor

Constructor Detail

def self.new(input) #

[View source]

Instance Method Detail

def consume_array(&) #

[View source]
def consume_hash(&) #

[View source]
def current_token : Token::T | Nil #

[View source]
def finish_token! #

[View source]
def read_begin_hash #

[View source]
def read_bool : Bool #

[View source]
def read_bytes #

[View source]
def read_float #

[View source]
def read_int #

[View source]
def read_nil : Nil #

[View source]
def read_nil_or(&) #

[View source]
def read_num #

[View source]
def read_string : String #

[View source]
def read_tag : Tag #

[View source]
def read_value : Type #

[View source]
def unexpected_token(token, expected = nil) #

[View source]