benx v0.1.0 Benx.Encoder protocol

Provides encoding according to the Bencoding specification for strings, atoms, integers, lists, maps, ranges, and streams.

Summary

Types

t()

Terms that can be encoded

Functions

Encodes a term using Bencoding

Types

t()
t ::
  String.t |
  atom |
  integer |
  [t] |
  %{required(String.t | atom) => t} |
  Range.t |
  Stream.t

Terms that can be encoded.

Functions

encode(term)
encode(t) :: iodata

Encodes a term using Bencoding.