Updated TODO list
Added IS_HANDSHAKE macro to check if a NetworkMessage is a handshake easier Utility: All From... methods are now ToBytes replaced emplace_back to insert since it was not compiling correcly
This commit is contained in:
@ -18,28 +18,28 @@ struct Utility
|
||||
|
||||
struct BitConverter
|
||||
{
|
||||
static const std::vector<byte> &FromUint8(uint8 number);
|
||||
static const std::vector<byte> &ToBytes(uint8 number);
|
||||
static uint8 ToUint8(const std::vector<byte> &bytes, uint16 start_index = 0);
|
||||
|
||||
static const std::vector<byte> &FromUint16(uint16 number);
|
||||
static const std::vector<byte> &ToBytes(uint16 number);
|
||||
static uint16 ToUint16(const std::vector<byte> &bytes, uint16 start_index = 0);
|
||||
|
||||
static const std::vector<byte> &FromUint32(uint32 number);
|
||||
static const std::vector<byte> &ToBytes(uint32 number);
|
||||
static uint32 ToUint32(const std::vector<byte> &bytes, uint16 start_index = 0);
|
||||
|
||||
static const std::vector<byte> &FromUint64(uint64 number);
|
||||
static const std::vector<byte> &ToBytes(uint64 number);
|
||||
static uint64 ToUint64(const std::vector<byte> &bytes, uint16 start_index = 0);
|
||||
|
||||
static const std::vector<byte> &FromInt8(int8 number);
|
||||
static const std::vector<byte> &ToBytes(int8 number);
|
||||
static int8 ToInt8(const std::vector<byte> &bytes, uint16 start_index = 0);
|
||||
|
||||
static const std::vector<byte> &FromInt16(int16 number);
|
||||
static const std::vector<byte> &ToBytes(int16 number);
|
||||
static int16 ToInt16(const std::vector<byte> &bytes, uint16 start_index = 0);
|
||||
|
||||
static const std::vector<byte> &FromInt32(int32 number);
|
||||
static const std::vector<byte> &ToBytes(int32 number);
|
||||
static int32 ToInt32(const std::vector<byte> &bytes, uint16 start_index = 0);
|
||||
|
||||
static const std::vector<byte> &FromInt64(int64 number);
|
||||
static const std::vector<byte> &ToBytes(int64 number);
|
||||
static int64 ToInt64(const std::vector<byte> &bytes, uint16 start_index = 0);
|
||||
};
|
||||
|
||||
@ -56,7 +56,7 @@ struct Utility
|
||||
static const std::string &ToString(int64 value);
|
||||
static const std::string &ToString(const std::vector<byte> &bytes);
|
||||
|
||||
static const std::vector<byte> &FromString(const std::string &str);
|
||||
static const std::vector<byte> &ToBytes(const std::string &str);
|
||||
|
||||
static const std::string &ToString(const std::vector<byte> &bytes, uint16 start_index = 0, uint16 lenght = 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user