summaryrefslogtreecommitdiffstats
path: root/Field.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Field.hpp')
-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;