diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-01 19:00:05 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-01 19:00:05 +0200 |
commit | bdc06b6e74e52183b3847f932229dd6328240e15 (patch) | |
tree | cc49b160923954457f074a72a58572c804a11fd4 /source/WorldStorage/FastNBT.h | |
parent | File: Added file rename and deletion functions (diff) | |
download | cuberite-bdc06b6e74e52183b3847f932229dd6328240e15.tar cuberite-bdc06b6e74e52183b3847f932229dd6328240e15.tar.gz cuberite-bdc06b6e74e52183b3847f932229dd6328240e15.tar.bz2 cuberite-bdc06b6e74e52183b3847f932229dd6328240e15.tar.lz cuberite-bdc06b6e74e52183b3847f932229dd6328240e15.tar.xz cuberite-bdc06b6e74e52183b3847f932229dd6328240e15.tar.zst cuberite-bdc06b6e74e52183b3847f932229dd6328240e15.zip |
Diffstat (limited to 'source/WorldStorage/FastNBT.h')
-rw-r--r-- | source/WorldStorage/FastNBT.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/WorldStorage/FastNBT.h b/source/WorldStorage/FastNBT.h index 1cae4879f..7323c29cb 100644 --- a/source/WorldStorage/FastNBT.h +++ b/source/WorldStorage/FastNBT.h @@ -190,6 +190,13 @@ public: return res; } + inline AString GetName(int a_Tag) const + { + AString res; + res.assign(m_Data + m_Tags[a_Tag].m_NameStart, m_Tags[a_Tag].m_NameLength); + return res; + } + protected: const char * m_Data; int m_Length; |