package containers

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

Install

Dune Dependency

Authors

Maintainers

Sources

v3.10.tar.gz
md5=050afc34c00ee0ffb1bf545c52d3880f
sha512=ef4c9c27f6e535df070f2ee9e6357f6f9bf4a8a196e3f274bec00d931bbd775f939a7e8b144accc8c4568df6c25b820aaebad6e12b1d444bccb7c8f7b7989bf0

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.

note this is only available on OCaml >= 4.08. Below that, the module is empty.

  • 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.