package cborl
Module CborlSource
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.
CBOR Data Item
Type of CBOR data item
CBOR data item pretty printer. Output resembles the CBOR diagnostic notation.
Serialization
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.
Signals
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.