Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Namespaces | Enumerations | Functions
FastNBT.h File Reference
#include <system_error>
#include "../Endianness.h"
Include dependency graph for FastNBT.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cFastNBTTag
 This structure is used for all NBT tags. More...
 
class  cFastNBTWriter
 
class  cParsedNBT
 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...
 
struct  std::is_error_code_enum< eNBTParseError >
 
struct  cFastNBTWriter::sParent
 

Namespaces

 std
 

Enumerations

enum class  eNBTParseError {
  npSuccess = 0 , npNeedBytes , npNoTopLevelCompound , npCompoundImbalancedTag ,
  npStringMissingLength , npStringInvalidLength , npListMissingType , npListMissingLength ,
  npListInvalidLength , npSimpleMissing , npArrayMissingLength , npArrayInvalidLength ,
  npUnknownTag
}
 
enum  eTagType {
  TAG_Min = 0 , TAG_End = 0 , TAG_Byte = 1 , TAG_Short = 2 ,
  TAG_Int = 3 , TAG_Long = 4 , TAG_Float = 5 , TAG_Double = 6 ,
  TAG_ByteArray = 7 , TAG_String = 8 , TAG_List = 9 , TAG_Compound = 10 ,
  TAG_IntArray = 11 , TAG_Max = 11
}
 

Functions

std::error_code make_error_code (eNBTParseError a_Err) noexcept
 

Enumeration Type Documentation

◆ eNBTParseError

enum eNBTParseError
strong
Enumerator
npSuccess 
npNeedBytes 
npNoTopLevelCompound 
npCompoundImbalancedTag 
npStringMissingLength 
npStringInvalidLength 
npListMissingType 
npListMissingLength 
npListInvalidLength 
npSimpleMissing 
npArrayMissingLength 
npArrayInvalidLength 
npUnknownTag 

Definition at line 111 of file FastNBT.h.

◆ eTagType

enum eTagType
Enumerator
TAG_Min 
TAG_End 
TAG_Byte 
TAG_Short 
TAG_Int 
TAG_Long 
TAG_Float 
TAG_Double 
TAG_ByteArray 
TAG_String 
TAG_List 
TAG_Compound 
TAG_IntArray 
TAG_Max 

Definition at line 29 of file FastNBT.h.

Function Documentation

◆ make_error_code()

std::error_code make_error_code ( eNBTParseError  a_Err)
noexcept

Definition at line 126 of file FastNBT.cpp.