class
Amber::Schema::CBOR::Reader
- Amber::Schema::CBOR::Reader
- Reference
- Object
Defined in:
amber/schema/cbor.crConstructors
-
.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 raisesAmber::Exceptions::ParameterLimitExceededrather thanDecodeError.
Instance Method Summary
- #finish! : Nil
- #read_array_size : Int32
- #read_bytes : Bytes
- #read_int : Int64
- #read_json(depth = 0) : JSON::Any
- #read_map_size : Int32
- #read_tag : UInt64
- #read_text : String
Constructor Detail
document_limit is the request's max_document_body_bytes; past it
the reader raises Amber::Exceptions::ParameterLimitExceeded rather
than DecodeError.