Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val create : Bencode_token.Decode.t -> t
val of_string : string -> t
val of_chan : in_channel -> t
val manual : unit -> t
type parse_result =
| ParseOk of bencode
| ParseError of string
| ParseEnd
end of input
*)| ParsePartial
Await more input
*)val feed : t -> string -> int -> int -> unit
Provide some more input (the subtstring). Only useful for manual, non-blocking parsing.
val next : t -> parse_result
Parse next value
val parse_string : string -> bencode option
Parse the string.
val parse_string_exn : string -> bencode