Parses and contains the parsed data Also implements data accessor functions for tree traversal and value getters The data pointer passed in the constructor is assumed to be valid throughout the object's life.
More...
|
| cParsedNBT (ContiguousByteBufferView a_Data) |
|
int | FindChildByName (int a_Tag, const AString &a_Name) const |
| Returns the direct child tag of the specified name, or -1 if no such tag. More...
|
|
int | FindChildByName (int a_Tag, const char *a_Name, size_t a_NameLength=0) const |
| Returns the direct child tag of the specified name, or -1 if no such tag. More...
|
|
int | FindTagByPath (int a_Tag, const AString &a_Path) const |
| Returns the child tag of the specified path (Name1 / Name2 / Name3...), or -1 if no such tag. More...
|
|
unsigned char | GetByte (int a_Tag) const |
| Returns the value stored in a Byte tag. More...
|
|
eTagType | GetChildrenType (int a_Tag) const |
| Returns the children type for a List tag; undefined on other tags. More...
|
|
const std::byte * | GetData (int a_Tag) const |
| Returns the data stored in this tag. More...
|
|
size_t | GetDataLength (int a_Tag) const |
| Returns the length of the tag's data, in bytes. More...
|
|
double | GetDouble (int a_Tag) const |
| Returns the value stored in a Double tag. More...
|
|
std::error_code | GetErrorCode () const |
| Returns the error code for the parsing of the NBT data. More...
|
|
size_t | GetErrorPos () const |
| Returns the position where an error occurred while parsing. More...
|
|
int | GetFirstChild (int a_Tag) const |
| Returns the first child of the specified tag, or -1 if none / not applicable. More...
|
|
float | GetFloat (int a_Tag) const |
| Returns the value stored in a Float tag. More...
|
|
Int32 | GetInt (int a_Tag) const |
| Returns the value stored in an Int tag. More...
|
|
int | GetLastChild (int a_Tag) const |
| Returns the last child of the specified tag, or -1 if none / not applicable. More...
|
|
Int64 | GetLong (int a_Tag) const |
| Returns the value stored in a Long tag. More...
|
|
AString | GetName (int a_Tag) const |
| Returns the tag's name. More...
|
|
int | GetNextSibling (int a_Tag) const |
| Returns the next sibling of the specified tag, or -1 if none. More...
|
|
int | GetPrevSibling (int a_Tag) const |
| Returns the previous sibling of the specified tag, or -1 if none. More...
|
|
int | GetRoot (void) const |
| Returns the root tag of the hierarchy. More...
|
|
Int16 | GetShort (int a_Tag) const |
| Returns the value stored in a Short tag. More...
|
|
AString | GetString (int a_Tag) const |
| Returns the value stored in a String tag. More...
|
|
std::string_view | GetStringView (int a_Tag) const |
| Returns the value stored in a String tag. More...
|
|
eTagType | GetType (int a_Tag) const |
|
bool | IsValid (void) const |
|
Parses and contains the parsed data Also implements data accessor functions for tree traversal and value getters The data pointer passed in the constructor is assumed to be valid throughout the object's life.
Care must be taken not to initialize from a temporary. The parser decomposes the input data into a tree of tags that is stored as an array of cFastNBTTag items, and accessing the tree is done by using the array indices for tags. Each tag stores the indices for its parent, first child, last child, prev sibling and next sibling, a value of -1 indicates that the indice is not valid. Each primitive tag also stores the length of the contained data, in bytes.
Definition at line 152 of file FastNBT.h.