package bencode
Bencode (`.torrent` file format) reader/writer in OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
2.0.tar.gz
md5=80a4d59a246c31df45a42779c777bb28
sha512=687544db98ca47ecd55c8235e751b04df58fd5aba1270dcc93e19629f483f33232ac3779c0e07d0fdb67ea958156113143b0bd3b8640478928b591092d327d12
README.md.html
bencode
Bencode (.torrent
file format) reader/writer in OCaml without any external dependencies.
See lib/bencode.mli
. Usage is straightforward. There is also a streaming API in modules Bencode_streaming
and Bencode_token
.
Installation
For a findlib based install
make
make install
Example
In the top level:
#require "bencode"
Bencode.decode (`File_path "test.torrent")
Will return a data structure representing the bencoded form of the following type:
type t =
| Integer of int
| String of string
| List of t list
| Dict of (string * t) list
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>