Add network

This commit is contained in:
2026-01-09 21:58:48 +00:00
parent f8e1948059
commit 5b5be7c3c8
24 changed files with 482 additions and 114 deletions
+2
View File
@@ -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();