summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
+ }
};
}