package orsetto

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Concise Binary Object Representation (CBOR) diagnostic notation.

Overview

Specialization of

f_emit

to output texts in the CBOR diagnostic format. Combinators are provided for the basic CBOR types to be used for directly emitting application data as CBOR diagnostic notation. Additional conveniences are provided for emitting encapsulated CBOR values as text.

Type
type 'a t = private 'a Cf_emit.To_formatter.t

The type of CBOR diagnostic notation emitters.

Convenience
val of_string : string -> string

Use of_string s to convert the CBOR encoded octets in s to the diagnostic notation for the encoded CBOR events.

val of_slice : string Cf_slice.t -> string

Use of_slice s to convert the CBOR encoded octets in s to the diagnostic notation for the encoded CBOR events.

Emitters
val events : Cbor_event.t Seq.t t

The emitter for a sequence of decoded CBOR events. Output may contain encoding indications.