summaryrefslogtreecommitdiffstats
path: root/Field.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-04-21 15:31:43 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-04-21 15:31:43 +0200
commit71760514fc044f273914c17b1510fa3cf10419b3 (patch)
tree72f822efde300d8e1e9de1cc578d431ff72e0e03 /Field.hpp
parent2017-04-15 (diff)
downloadAltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.gz
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.bz2
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.lz
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.xz
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.zst
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.zip
Diffstat (limited to '')
-rw-r--r--Field.hpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/Field.hpp b/Field.hpp
index 4620ab3..43769dc 100644
--- a/Field.hpp
+++ b/Field.hpp
@@ -1,7 +1,6 @@
#pragma once
#include <cstddef>
-#include <cstring>
#include <cstdint>
#include <string>
#include <vector>
@@ -14,7 +13,7 @@ typedef signed char sbyte;
enum FieldType {
Unknown = 0,
Boolean, //Bool
- Byte, //int8_t
+ Byte8_t, //int8_t
UnsignedByte, //uint8_t
Short, //int16_t
UnsignedShort, //uint16_t
@@ -27,7 +26,7 @@ enum FieldType {
Uuid, //byte* (2 bytes)
//Unknown-length data
- String = 100, //std::string
+ String = 100, //std::string
Chat, //std::string
VarInt, //int32_t
VarLong, //int64_t
@@ -112,10 +111,6 @@ public:
std::vector<Field> GetArray();
- /*Field GetArrayItem(int pos, size_t defaultFieldLen = 0);
-
- void SetArray(int count);*/
-
private:
size_t m_dataLength = 0;
byte *m_data = nullptr;