Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Public Attributes | List of all members
cFastNBTTag Struct Reference

This structure is used for all NBT tags. More...

#include <FastNBT.h>

Public Member Functions

 cFastNBTTag (eTagType a_Type, int a_Parent)
 
 cFastNBTTag (eTagType a_Type, int a_Parent, int a_PrevSibling)
 

Public Attributes

size_t m_DataLength
 
size_t m_DataStart
 
int m_FirstChild
 
int m_LastChild
 
size_t m_NameLength
 
size_t m_NameStart
 
int m_NextSibling
 
int m_Parent
 
int m_PrevSibling
 
eTagType m_Type
 

Detailed Description

This structure is used for all NBT tags.

It contains indices to the parent array of tags, building the NBT tree this way. Also contains indices into the data stream being parsed, used for values; NO dynamically allocated memory is used! Structure (all with the tree structure it describes) supports moving in memory (std::vector reallocation)

Definition at line 57 of file FastNBT.h.

Constructor & Destructor Documentation

◆ cFastNBTTag() [1/2]

cFastNBTTag::cFastNBTTag ( eTagType  a_Type,
int  a_Parent 
)
inline

Definition at line 78 of file FastNBT.h.

◆ cFastNBTTag() [2/2]

cFastNBTTag::cFastNBTTag ( eTagType  a_Type,
int  a_Parent,
int  a_PrevSibling 
)
inline

Definition at line 92 of file FastNBT.h.

Member Data Documentation

◆ m_DataLength

size_t cFastNBTTag::m_DataLength

Definition at line 68 of file FastNBT.h.

◆ m_DataStart

size_t cFastNBTTag::m_DataStart

Definition at line 67 of file FastNBT.h.

◆ m_FirstChild

int cFastNBTTag::m_FirstChild

Definition at line 75 of file FastNBT.h.

◆ m_LastChild

int cFastNBTTag::m_LastChild

Definition at line 76 of file FastNBT.h.

◆ m_NameLength

size_t cFastNBTTag::m_NameLength

Definition at line 66 of file FastNBT.h.

◆ m_NameStart

size_t cFastNBTTag::m_NameStart

Definition at line 65 of file FastNBT.h.

◆ m_NextSibling

int cFastNBTTag::m_NextSibling

Definition at line 74 of file FastNBT.h.

◆ m_Parent

int cFastNBTTag::m_Parent

Definition at line 72 of file FastNBT.h.

◆ m_PrevSibling

int cFastNBTTag::m_PrevSibling

Definition at line 73 of file FastNBT.h.

◆ m_Type

eTagType cFastNBTTag::m_Type

Definition at line 61 of file FastNBT.h.


The documentation for this struct was generated from the following file: