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.tbz
sha256=372df86e2a41e86c959c28a3392eb2ffd89754d1e5af2aaa09537654af57b1da
sha512=7d87d44065612095fa0342a9c95a2c4cfdf73d5af47c6fce24262cf2870c36dee70ebecd056113aa9c1643256bc032c08530f5083061c44602c0da5a132c2d6c

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.