- ID: Bencode!PARSER
- Contact: [email protected]
To use the Bencode!PARSER you need to include the bdecoder.hpp into your project
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 }
- Add the function encode() bEncodes a BencodeNode
- Add the function toString() prints Json-like bEncoded nodes
- Initial Release