package bencode

  1. Overview
  2. Docs

Streaming Tokenization for Bencode

type t = [
  1. | `I of int64
  2. | `S of string
  3. | `BeginDict
  4. | `BeginList
  5. | `End
]
type token = t
type 'a sequence = ('a -> unit) -> unit
val to_string : t -> string

Encode

serializing a stream of tokens to a buffer or a channel, in text form

module Encode : sig ... end

Decode

read a stream of tokens from a channel or string

module Decode : sig ... end
module Easy : sig ... end
OCaml

Innovation. Community. Security.