Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/planetarium/bencodex.net

Bencodex codec for .NET
https://github.com/planetarium/bencodex.net

bencode bencodex csharp dotnet hacktoberfest

Last synced: about 1 month ago
JSON representation

Bencodex codec for .NET

Awesome Lists containing this project

README

        

Bencodex codec for .NET
=======================

[![GitHub Actions Status][]][GitHub Actions]
[![NuGet](https://img.shields.io/nuget/v/Bencodex)][NuGet]

This library implements [Bencodex] serialization format which extends
[Bencoding].

[GitHub Actions]: https://github.com/planetarium/bencodex.net/actions
[GitHub Actions Status]: https://github.com/planetarium/bencodex.net/workflows/build/badge.svg?event=push
[NuGet]: https://www.nuget.org/packages/Bencodex
[Bencodex]: https://github.com/planetarium/bencodex
[Bencoding]: http://www.bittorrent.org/beps/bep_0003.html#bencoding

Usage
-----

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.

License
-------

Distributed under [LGPL 2.1] or later.

[LGPL 2.1]: https://www.gnu.org/licenses/lgpl-2.1.html