diff options
Diffstat (limited to 'src/WorldStorage/FastNBT.h')
-rw-r--r-- | src/WorldStorage/FastNBT.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/WorldStorage/FastNBT.h b/src/WorldStorage/FastNBT.h index 0185a49ec..1f11ec7f3 100644 --- a/src/WorldStorage/FastNBT.h +++ b/src/WorldStorage/FastNBT.h @@ -307,6 +307,10 @@ protected: eNBTParseError ReadCompound(void); // Reads the latest tag as a compound eNBTParseError ReadList(eTagType a_ChildrenType); // Reads the latest tag as a list of items of type a_ChildrenType eNBTParseError ReadTag(void); // Reads the latest tag, depending on its m_Type setting + + /** Returns the minimum size, in bytes, of the specified tag type. + Used for sanity-checking. */ + static size_t GetMinTagSize(eTagType a_TagType); } ; |