package orsetto

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

Install

Dune Dependency

Authors

Maintainers

Sources

r1.1.tar.gz
sha256=6e6f59fc6a2c590b1b377e40f2120a548e6f09e61e7eb12ffa45cf2d517316b8
md5=533153cd4a9fe8093d3b98afc1073bc8

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.