-
Notifications
You must be signed in to change notification settings - Fork 0
serialization.cpp
makr-code edited this page Nov 18, 2025
·
1 revision
Path: src/utils/serialization.cpp
Purpose: Serialization and deserialization helpers for entities and change events.
Public functions / symbols:
for (int i = 0; i < 8; ++i) {for (int i = 0; i < 4; ++i) {writeTag(TypeTag::NULL_VALUE);writeTag(value ? TypeTag::BOOL_TRUE : TypeTag::BOOL_FALSE);writeTag(TypeTag::INT32);writeTag(TypeTag::INT64);writeTag(TypeTag::UINT32);writeUInt32(value);writeTag(TypeTag::UINT64);writeUInt64(value);writeTag(TypeTag::FLOAT);writeUInt32(bits);writeTag(TypeTag::DOUBLE);writeUInt64(bits);writeTag(TypeTag::STRING);writeTag(TypeTag::BINARY);writeTag(TypeTag::VECTOR_FLOAT);writeTag(TypeTag::ARRAY);writeTag(TypeTag::OBJECT);readTag(); // Skip type tagreadTag();return readUInt32();return readUInt64();- ``
Serialization::Encoder::Encoder() {