Skip to content

s3ponia/BencodeParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BencodeParser

C++17 header-only library for parsing BencodeParser.

API

Bencode types are represented in aliases BencodeInteger, BencodeString, BencodeList, BencodeDictionary. BencodeElement is a struct with the only field std::variant<BencodeInteger, BencodeString, BencodeList, BencodeDictionary> value.

For Decoding Bencode use

auto DecodeBencodeElement(std::string_view str) -> BencodeElement

For Encoding Bencode use

auto Encode(BencodeElement const &) -> std::string;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages