package bencode

  1. Overview
  2. Docs
type t =
  1. | Integer of int
  2. | String of string
  3. | List of t list
  4. | Dict of (string * t) list
type src = [
  1. | `Channel of Pervasives.in_channel
  2. | `File_path of string
  3. | `String of string
]
type dst = [
  1. | `Buffer of Buffer.t
  2. | `Channel of Pervasives.out_channel
  3. | `File_path of string
]
val eq : t -> t -> bool
val hash : t -> int
val dict_of_list : (string * t) list -> t
val pretty_print : t -> string
val decode : [< src ] -> t
val encode : [< dst ] -> t -> unit
val encode_to_string : t -> string
OCaml

Innovation. Community. Security.