cpp-bencoding
Classes | Namespaces
Decoder.h File Reference

Decoder of bencoded data. More...

#include <exception>
#include <memory>
#include <string>
#include "BItem.h"

Go to the source code of this file.

Classes

class  bencoding::DecodingError
 Exception thrown when there is an error during the decoding. More...
 
class  bencoding::Decoder
 Decoder of bencoded data. More...
 

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

Decoder of bencoded data.

License BSD, see the LICENSE file for more details