summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-07-21 11:08:27 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-07-21 11:08:27 +0200
commit956142385f63cec0ac1033568ba216cdf3a4a20f (patch)
treeccfc9fa306a51cf6a2e66190fd4090ac6f5bb9b7 /src
parenta588857ed0783712a581030807642f54f3d01d3c (diff)
downloadMinedMap-956142385f63cec0ac1033568ba216cdf3a4a20f.tar
MinedMap-956142385f63cec0ac1033568ba216cdf3a4a20f.zip
NBT: add data accessors for IntArray and LongArray
Diffstat (limited to 'src')
-rw-r--r--src/NBT/IntArrayTag.hpp8
-rw-r--r--src/NBT/LongArrayTag.hpp8
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;
+ }
};
}