diff options
Diffstat (limited to 'src/NBT/ByteTag.hpp')
-rw-r--r-- | src/NBT/ByteTag.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/NBT/ByteTag.hpp b/src/NBT/ByteTag.hpp index 64bdaa1..dc7e212 100644 --- a/src/NBT/ByteTag.hpp +++ b/src/NBT/ByteTag.hpp @@ -47,6 +47,12 @@ public: return Type::Byte; } + virtual void print(std::ostream& os, const std::string &) const { + os << (unsigned)getValue() << " / " + << (int)(int8_t)getValue() << " / " + << std::hex << "0x" << (unsigned)getValue() << std::dec; + } + uint8_t getValue() const { return value; } |