diff options
Diffstat (limited to 'src/NBT/IntTag.hpp')
-rw-r--r-- | src/NBT/IntTag.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/NBT/IntTag.hpp b/src/NBT/IntTag.hpp index b0337c7..eacac52 100644 --- a/src/NBT/IntTag.hpp +++ b/src/NBT/IntTag.hpp @@ -47,6 +47,12 @@ public: return Type::Int; } + virtual void print(std::ostream& os, const std::string &) const { + os << getValue() << " / " + << (int32_t)getValue() << " / " + << std::hex << "0x" << getValue() << std::dec; + } + uint32_t getValue() const { return Buffer::parse32(ptr); } |