block inventories (backend)

This commit is contained in:
MihailRis
2024-02-12 18:28:18 +03:00
parent fe57c38edf
commit 87f50f79c9
12 changed files with 108 additions and 18 deletions
+8
View File
@@ -200,3 +200,11 @@ std::string ByteReader::getString() {
bool ByteReader::hasNext() const {
return pos < size;
}
const ubyte* ByteReader::pointer() const {
return data + pos;
}
void ByteReader::skip(size_t n) {
pos += n;
}
+3
View File
@@ -71,6 +71,9 @@ public:
const char* getCString();
std::string getString();
bool hasNext() const;
const ubyte* pointer() const;
void skip(size_t n);
};
#endif // CODERS_BYTE_UTILS_H_