benx v0.1.0 Benx.Decoder

Provides decoding for iodata according to the Bencoding specification.

Summary

Functions

Decodes a Bencoded iolist

Decodes a Bencoded iolist. Raises on syntax errors

Functions

decode(data)
decode(iodata) ::
  {:ok, Benx.Encoder.t} |
  {:error, String.t, integer}

Decodes a Bencoded iolist.

decode!(data)
decode!(iodata) :: String.t

Decodes a Bencoded iolist. Raises on syntax errors.