summaryrefslogtreecommitdiffstats
path: root/src/NBT
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-02-01 14:35:31 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-02-01 14:35:31 +0100
commite880f8997feaaab8cf8a908cff8de241c6133bef (patch)
treea18112e655a8eed65268cf38a455f84336fb013d /src/NBT
parent8b09f6f4eccf72e0604ef912a3f18cdf08dd2d5d (diff)
downloadMinedMap-e880f8997feaaab8cf8a908cff8de241c6133bef.tar
MinedMap-e880f8997feaaab8cf8a908cff8de241c6133bef.zip
Performance improvements
Diffstat (limited to 'src/NBT')
-rw-r--r--src/NBT/ByteArrayTag.hpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/NBT/ByteArrayTag.hpp b/src/NBT/ByteArrayTag.hpp
index 4f2d331..0e56a9a 100644
--- a/src/NBT/ByteArrayTag.hpp
+++ b/src/NBT/ByteArrayTag.hpp
@@ -55,15 +55,8 @@ public:
return len;
}
- const uint8_t & get(size_t i) const {
- return value[i];
- }
-
- uint8_t getHalf(size_t i) const {
- if (i % 2)
- return (value[i/2] >> 4);
- else
- return (value[i/2] & 0xf);
+ const uint8_t * getValue() const {
+ return value;
}
};