Skip to content


Repository files navigation

Bencodex codec for .NET

GitHub Actions Status NuGet

This library implements Bencodex serialization format which extends Bencoding.


It currently provides only the most basic encoder and decoder. See also these methods:

  • Bencodex.Codec.Encode(Bencodex.Types.IValue, System.IO.Stream)
  • Bencodex.Codec.Encode(Bencodex.Types.IValue)
  • Bencodex.Codec.Decode(System.IO.Stream)
  • Bencodex.Codec.Decode(System.Byte[])

It will provide type-extensible higher-level APIs as well in the future.


Distributed under LGPL 2.1 or later.