package bencode

  1. Overview
  2. Docs
Bencode (`.torrent` file format) reader/writer in OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

2.0.tar.gz
md5=80a4d59a246c31df45a42779c777bb28
sha512=687544db98ca47ecd55c8235e751b04df58fd5aba1270dcc93e19629f483f33232ac3779c0e07d0fdb67ea958156113143b0bd3b8640478928b591092d327d12

doc/bencode/Bencode_token/index.html

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