Skip to content

Bencode!PARSER encodes and decodes bencoded strings to a Json-like based bEncode structure and vice versa

Notifications You must be signed in to change notification settings

nschepsen/bencode-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PROJECT

USAGE

To use the Bencode!PARSER you need to include the bdecoder.hpp into your project

SPECIFICATION

EXAMPLES

The string "d3:bar4:spam3:fooi42ee"

std::string src("d3:bar4:spam3:fooi42ee");
BencodeNode root
(
    BDecoder(src).decode()
);

will be encoded to a Json-like based bEncode structure

{ "bar" : "spam", "foo" : 42 }

CHANGELOG

Bencode!PARSER 1.1, updated @ 2016-03-22

  • Add the function encode() bEncodes a BencodeNode

Bencode!PARSER 1.0, updated @ 2016-03-02

  • Add the function toString() prints Json-like bEncoded nodes

Bencode!PARSER 1.0, updated @ 2016-03-01

  • Initial Release

About

Bencode!PARSER encodes and decodes bencoded strings to a Json-like based bEncode structure and vice versa

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published