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.16.tbz
sha256=1e7992cb2e59c0d2290d1b6c3a31531b3f310be6170b8ef3dde17ccd876b5b79
sha512=bb124e69ad0690f88393e18eee499be07761e767593558867aab32f643466b43258ced503170b154ca3b56dbd68987abd6d9438cf473707ec9866511589a5b84

doc/containers.bencode/Containers_bencode/index.html

Module Containers_bencodeSource

Basic Bencode decoder/encoder.

See https://en.wikipedia.org/wiki/Bencode .

  • since 3.8
Sourcemodule Str_map : sig ... end
Sourcetype t =
  1. | Int of int64
  2. | String of string
  3. | List of t list
  4. | Map of t Str_map.t
Sourceval equal : t -> t -> bool
Sourceval hash : t -> int
Sourceval pp_debug : Format.formatter -> t -> unit

Printer for diagnostic/human consumption

Sourceval to_string_debug : t -> string
Sourceval int : int -> t
Sourceval int64 : int64 -> t
Sourceval string : string -> t
Sourceval list : t list -> t
Sourceval map_of_list : (string * t) list -> t
Sourceval map : t Str_map.t -> t
Sourcemodule Encode : sig ... end

Encoding

Sourcemodule Decode : sig ... end

Decoding

OCaml

Innovation. Community. Security.