diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-07-21 16:17:40 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-07-21 16:29:26 +0200 |
commit | 59fe1ba0255e5e1c4a24658f7ccc34dc294aeb50 (patch) | |
tree | 6659532fa46bc4aa0129c2723454f5b71bda5f1d /src/NBT/ByteArrayTag.hpp | |
parent | 4288935d701a871b91838dd6c837cc6c2060271f (diff) | |
download | MinedMap-59fe1ba0255e5e1c4a24658f7ccc34dc294aeb50.tar MinedMap-59fe1ba0255e5e1c4a24658f7ccc34dc294aeb50.zip |
NBT: make Tag constructors public, remove friend declarations
Diffstat (limited to 'src/NBT/ByteArrayTag.hpp')
-rw-r--r-- | src/NBT/ByteArrayTag.hpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/NBT/ByteArrayTag.hpp b/src/NBT/ByteArrayTag.hpp index 36d9fe7..1e4f2f9 100644 --- a/src/NBT/ByteArrayTag.hpp +++ b/src/NBT/ByteArrayTag.hpp @@ -36,17 +36,14 @@ namespace NBT { class ByteArrayTag : public Tag { private: - friend class Tag; - uint32_t len; const uint8_t *value; +public: ByteArrayTag(Buffer *buffer) { len = buffer->get32(); value = buffer->get(len); } - -public: virtual Type getType() const { return Type::ByteArray; } |