clj-cbor.codec
Main CBOR codec implementation.
blank-codec
(blank-codec)
Constructs a new CBORCodec
record with default empty field values.
Decoder
protocol
A decoder is a process that reads a CBOR data item and makes it available to an application.
Formally speaking, a decoder contains a parser to break up the input using the syntax rules of CBOR, as well as a semantic processor to prepare the data in a form suitable to the application.
members
read-value*
(read-value* decoder input header)
Reads a single value from the DataInputStream
, given the just-read initial byte.
Encoder
protocol
An encoder is a process that generates the representation format of a CBOR data item from application information.
members
write-value
(write-value encoder out x)
Writes the given value x
to the DataOutputStream
out
.