Packages

A simple bencode encoder and decoder writen in pure Erlang

Current section

Files

Jump to
erl_bencode src bencode.erl
Raw

src/bencode.erl

-module(bencode).
-export([encode_term/1, decode_term/1, encode_file/1, decode_file/1]).
encode_term(Value) -> encode:start(Value).
decode_term(Value) -> decode:start_term(Value).
encode_file(FilePath) -> encode:start_file(FilePath).
decode_file(FilePath) -> decode:start(FilePath).