package bencode

  1. Overview
  2. Docs
type t
val create : Bencode_token.Decode.t -> t
val of_string : string -> t
val of_bytes : Stdlib.Bytes.t -> t
val of_chan : Stdlib.in_channel -> t
val manual : unit -> t
type parse_result =
  1. | ParseOk of bencode
  2. | ParseError of string
  3. | ParseEnd
  4. | ParsePartial
val feed : t -> string -> int -> int -> unit
val feed_bytes : t -> Stdlib.Bytes.t -> int -> int -> unit
val next : t -> parse_result
val parse_string : string -> bencode option
val parse_string_exn : string -> bencode
OCaml

Innovation. Community. Security.