package bencode

  1. Overview
  2. Docs

Module Bencode_tokenSource

Streaming Tokenization for Bencode

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

Encode

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

Sourcemodule Encode : sig ... end

Decode

read a stream of tokens from a channel or string

Sourcemodule Decode : sig ... end
Sourcemodule Easy : sig ... end
OCaml

Innovation. Community. Security.