kget
bt::BEncoder Class Reference
#include <bencoder.h>
Detailed Description
Helper class to b-encode stuff.
This class b-encodes data. For more details about b-encoding, see the BitTorrent protocol docs. The data gets written to a BEncoderOutput thing.
Definition at line 82 of file bencoder.h.
Public Member Functions | |
| void | beginDict () |
| void | beginList () |
| BEncoder (BEncoderOutput *out) | |
| BEncoder (File *fptr) | |
| void | end () |
| void | write (const Uint8 *data, Uint32 size) |
| void | write (const QByteArray &data) |
| void | write (const QString &str) |
| void | write (const char *str) |
| void | write (Uint64 val) |
| void | write (Uint32 val) |
| virtual | ~BEncoder () |
Constructor & Destructor Documentation
| bt::BEncoder::BEncoder | ( | File * | fptr | ) |
Constructor, output gets written to a file.
- Parameters:
-
fptr The File to write to
Definition at line 57 of file bencoder.cpp.
| bt::BEncoder::BEncoder | ( | BEncoderOutput * | out | ) |
Constructor, output gets written to a BEncoderOutput object.
- Parameters:
-
out The BEncoderOutput
Definition at line 62 of file bencoder.cpp.
| bt::BEncoder::~BEncoder | ( | ) | [virtual] |
Definition at line 67 of file bencoder.cpp.
Member Function Documentation
| void bt::BEncoder::beginDict | ( | ) |
Begin a dictionary.Should have a corresponding end call.
Definition at line 73 of file bencoder.cpp.
| void bt::BEncoder::beginList | ( | ) |
| void bt::BEncoder::end | ( | ) |
| void bt::BEncoder::write | ( | const QByteArray & | data | ) |
| void bt::BEncoder::write | ( | const QString & | str | ) |
| void bt::BEncoder::write | ( | const char * | str | ) |
| void bt::BEncoder::write | ( | Uint64 | val | ) |
| void bt::BEncoder::write | ( | Uint32 | val | ) |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference