#Bencode implementation

4 messages · Page 1 of 1 (latest)

compact scaffold
#

Hi, can anyone review my implementation of bencode in C++17/20? This is just a header file I plan to use elsewhere in my project.

#

Bencode (pronounced like Bee-encode) is the encoding used by the peer-to-peer file sharing system BitTorrent for storing and transmitting loosely structured data.It supports four different types of values:

byte strings,
integers,
lists, and
dictionaries (associative arrays).Bencoding is most commonly used in torrent files, and as such is part o...

#

btw I'm aware some of these functions should be defined elsewhere, that's not quite what I'm looking for feedback on

#

We engage in a modicum of c-style string parsing