package containers

  1. Overview
  2. Docs
A modular, clean and powerful extension of the OCaml standard library

Install

Dune Dependency

Authors

Maintainers

Sources

containers-3.13.1.tbz
sha256=eb9b26eb2c3cf04fc5157d256eb49c43552ccb5c59c568772d70315db9669784
sha512=7f4cf5112c8047fd789c04129745dbe9783aa94390e8983f86408053b0af637e2a9cfce1559ce466b1b6ff7c01fd52d8685f5db1d1c0dda2c0aa138f90606a50

doc/containers.cbor/Containers_cbor/index.html

Module Containers_cborSource

CBOR encoder/decoder.

The type is chosen to be compatible with ocaml-cbor. See the RFC.

note this is experimental.

  • since 3.9
Sourcetype t = [
  1. | `Null
  2. | `Undefined
  3. | `Simple of int
  4. | `Bool of bool
  5. | `Int of int64
  6. | `Float of float
  7. | `Bytes of string
  8. | `Text of string
  9. | `Array of t list
  10. | `Map of (t * t) list
  11. | `Tag of int * t
]
Sourceval pp_diagnostic : t CCFormat.printer
Sourceval to_string_diagnostic : t -> string
Sourceval encode : ?buf:Buffer.t -> t -> string
Sourceval decode : string -> (t, string) result
Sourceval decode_exn : string -> t

Like decode.

  • raises Failure

    if the string isn't valid

OCaml

Innovation. Community. Security.