Data encoder.
More...
#include <Encoder.h>
|
std::string | encode (std::shared_ptr< BItem > data) |
| Encodes the given data and returns them. More...
|
|
Data encoder.
The format is based on the BitTorrent specification.
Use create() to create instances.
◆ Encoder()
bencoding::Encoder::Encoder |
( |
| ) |
|
|
private |
◆ create()
std::unique_ptr< Encoder > bencoding::Encoder::create |
( |
| ) |
|
|
static |
◆ encode()
std::string bencoding::Encoder::encode |
( |
std::shared_ptr< BItem > |
data | ) |
|
Encodes the given data and returns them.
◆ visit() [1/4]
void bencoding::Encoder::visit |
( |
BDictionary * |
bDictionary | ) |
|
|
overrideprivatevirtual |
◆ visit() [2/4]
void bencoding::Encoder::visit |
( |
BInteger * |
bInteger | ) |
|
|
overrideprivatevirtual |
◆ visit() [3/4]
void bencoding::Encoder::visit |
( |
BList * |
bList | ) |
|
|
overrideprivatevirtual |
◆ visit() [4/4]
void bencoding::Encoder::visit |
( |
BString * |
bString | ) |
|
|
overrideprivatevirtual |
◆ encodedData
std::string bencoding::Encoder::encodedData |
|
private |
The documentation for this class was generated from the following files:
- /home/s3rvac/Projects/GitHub/Created/cpp-bencoding/include/Encoder.h
- /home/s3rvac/Projects/GitHub/Created/cpp-bencoding/src/Encoder.cpp