diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-07-21 11:08:27 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-07-21 11:08:27 +0200 |
commit | 956142385f63cec0ac1033568ba216cdf3a4a20f (patch) | |
tree | ccfc9fa306a51cf6a2e66190fd4090ac6f5bb9b7 /src/NBT | |
parent | a588857ed0783712a581030807642f54f3d01d3c (diff) | |
download | MinedMap-956142385f63cec0ac1033568ba216cdf3a4a20f.tar MinedMap-956142385f63cec0ac1033568ba216cdf3a4a20f.zip |
NBT: add data accessors for IntArray and LongArray
Diffstat (limited to 'src/NBT')
-rw-r--r-- | src/NBT/IntArrayTag.hpp | 8 | ||||
-rw-r--r-- | src/NBT/LongArrayTag.hpp | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/NBT/IntArrayTag.hpp b/src/NBT/IntArrayTag.hpp index 5fdd3fc..1b40a1d 100644 --- a/src/NBT/IntArrayTag.hpp +++ b/src/NBT/IntArrayTag.hpp @@ -68,6 +68,14 @@ public: os << indent << "]"; } + + uint32_t getLength() const { + return len; + } + + const uint8_t * getPointer() const { + return ptr; + } }; } diff --git a/src/NBT/LongArrayTag.hpp b/src/NBT/LongArrayTag.hpp index 6cd910f..a526b72 100644 --- a/src/NBT/LongArrayTag.hpp +++ b/src/NBT/LongArrayTag.hpp @@ -68,6 +68,14 @@ public: os << indent << "]"; } + + uint32_t getLength() const { + return len; + } + + const uint8_t * getPointer() const { + return ptr; + } }; } |