package orsetto

  1. Overview
  2. Docs
A library of assorted structured data interchange languages

Install

Dune Dependency

Authors

Maintainers

Sources

r1.1.1.tar.gz
sha256=81283687ce3204263bc955a332dd7b90bf5b648a990c01160f33aaa77d80962f
md5=7346293aa013c2a8974c6fb7c521166a

doc/orsetto.cbor/Cbor_notation/index.html

Module Cbor_notation

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.

OCaml

Innovation. Community. Security.