package bencode

  1. Overview
  2. Docs
type t = Bencode.t
val size : t -> int
val write_in_string : t -> string -> int -> unit
val to_buf : Buffer.t -> t -> unit
val to_string : t -> string
val to_chan : Pervasives.out_channel -> t -> unit
val fmt : Format.formatter -> t -> unit
val pretty : Format.formatter -> t -> unit
val pretty_to_str : t -> string
type decoder
val mk_decoder : unit -> decoder
type parse_result =
  1. | ParseOk of t
  2. | ParseError of string
  3. | ParsePartial
val parse : decoder -> string -> int -> int -> parse_result
val parse_resume : decoder -> parse_result
val reset : decoder -> unit
val state : decoder -> parse_result
val rest : decoder -> string
val rest_size : decoder -> int
val parse_string : string -> parse_result
val of_string : string -> t
OCaml

Innovation. Community. Security.