Base class for a node in a b-encoded piece of data.
More...
#include <bnode.h>
|
enum | Type { VALUE,
DICT,
LIST
} |
|
|
| BNode (Type type, Uint32 off) |
|
Uint32 | getLength () const |
| Get the length this node takes up in the bytearray.
|
|
Uint32 | getOffset () const |
| Get the offset in the bytearray where this node starts.
|
|
Type | getType () const |
| Get the type of node.
|
|
virtual void | printDebugInfo ()=0 |
| Print some debugging info.
|
|
void | setLength (Uint32 l) |
| Set the length.
|
|
- Author
- Joris Guisson There are 3 possible pieces of data in b-encoded piece of data. This is the base class for all those 3 things.
Definition at line 60 of file bnode.h.
◆ BNode()
bt::BNode::BNode |
( |
Type |
type, |
|
|
Uint32 |
off |
|
) |
| |
Constructor, sets the Type, and the offset into the data.
- Parameters
-
type | Type of node |
off | The offset into the data |
The documentation for this class was generated from the following file: