Add network
This commit is contained in:
@@ -14,6 +14,7 @@ namespace network
|
||||
explicit Buffer(size_t reserve = 0) : buffer(reserve), pos(0) {}
|
||||
|
||||
// --- Writing ---
|
||||
void writeBool(bool v);
|
||||
void writeUint8(uint8_t v);
|
||||
void writeUint32(uint32_t v);
|
||||
void writeUint16(uint16_t v);
|
||||
@@ -26,6 +27,7 @@ namespace network
|
||||
void writeBytes(const uint8_t *data, size_t len);
|
||||
void writeString(const std::string &s);
|
||||
// --- Reading ---
|
||||
bool readBool();
|
||||
uint8_t readUint8();
|
||||
uint16_t readUint16();
|
||||
uint32_t readUint32();
|
||||
|
||||
Reference in New Issue
Block a user