Library
Module
Module type
Parameter
Class
Class type
OCaml implementation of The Concise Binary Object Representation (CBOR)
This module provides types for CBOR data items as well as function for writing CBOR data items to sequences of bytes and reading CBOR data items from sequences of bytes.
read bytes
read a single CBOR data item from the sequence bytes
.
To read multiple data items (i.e. a CBOR data stream) see Signal.to_items
.
module Signal : sig ... end
Serialization is done by converting CBOR data items to a sequence of signals. Signals can be directly translated to and from bytes. This module provides direct access to signals. This can be used to stream large CBOR data items and also provides the ability to work with indefinite-length CBOR data items.