class Amber::Schema::CBOR::Reader

Defined in:

amber/schema/cbor.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO, max_bytes : Int32 = MAX_BODY_BYTES, document_limit : Int32 | Nil = nil) #

document_limit is the request's max_document_body_bytes; past it the reader raises Amber::Exceptions::ParameterLimitExceeded rather than DecodeError.


[View source]

Instance Method Detail

def finish! : Nil #

[View source]
def read_array_size : Int32 #

[View source]
def read_bytes : Bytes #

[View source]
def read_int : Int64 #

[View source]
def read_json(depth = 0) : JSON::Any #

[View source]
def read_map_size : Int32 #

[View source]
def read_tag : UInt64 #

[View source]
def read_text : String #

[View source]