summaryrefslogtreecommitdiffstats
path: root/src/NBT/LongTag.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NBT/LongTag.hpp')
-rw-r--r--src/NBT/LongTag.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/NBT/LongTag.hpp b/src/NBT/LongTag.hpp
index b07bc1a..4f6bec3 100644
--- a/src/NBT/LongTag.hpp
+++ b/src/NBT/LongTag.hpp
@@ -47,6 +47,12 @@ public:
return Type::Long;
}
+ virtual void print(std::ostream& os, const std::string &) const {
+ os << getValue() << " / "
+ << (int64_t)getValue() << " / "
+ << std::hex << "0x" << getValue() << std::dec;
+ }
+
uint64_t getValue() const {
return Buffer::parse64(ptr);
}