diff options
author | Mattes D <github@xoft.cz> | 2020-04-30 08:44:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 08:44:49 +0200 |
commit | dfe7a0adee150bb00b611c48b50d3e928f27222f (patch) | |
tree | 00d40a9fdd9a91a34f2684b3a087a398980bf824 /src/WorldStorage/FastNBT.h | |
parent | Update DispenserEntity.cpp (diff) | |
download | cuberite-dfe7a0adee150bb00b611c48b50d3e928f27222f.tar cuberite-dfe7a0adee150bb00b611c48b50d3e928f27222f.tar.gz cuberite-dfe7a0adee150bb00b611c48b50d3e928f27222f.tar.bz2 cuberite-dfe7a0adee150bb00b611c48b50d3e928f27222f.tar.lz cuberite-dfe7a0adee150bb00b611c48b50d3e928f27222f.tar.xz cuberite-dfe7a0adee150bb00b611c48b50d3e928f27222f.tar.zst cuberite-dfe7a0adee150bb00b611c48b50d3e928f27222f.zip |
Diffstat (limited to '')
-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); } ; |