cpp-bencoding
Namespaces
Decoder.cpp File Reference

Implementation of the Decoder class. More...

#include "Decoder.h"
#include <cassert>
#include <regex>
#include <sstream>
#include "BDictionary.h"
#include "BInteger.h"
#include "BList.h"
#include "BString.h"
#include "Utils.h"

Namespaces

 bencoding
 Main namespace of the bencoding library.
 

Functions

Decoding Without Explicit Decoder Creation
std::unique_ptr< BItem > bencoding::decode (const std::string &data)
 Decodes the given bencoded data and returns them. More...
 
std::unique_ptr< BItem > bencoding::decode (std::istream &input)
 Reads all the data from the given input, decodes them and returns them. More...
 

Detailed Description

Implementation of the Decoder class.

License BSD, see the LICENSE file for more details