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
.
auto DecodeBencodeElement(std::string_view str) -> BencodeElement
auto Encode(BencodeElement const &) -> std::string;