#include "irrlichttypes_bloated.h"
#include "exceptions.h"
#include "ieee_float.h"
#include "config.h"
#include <cstring>
#include <cassert>
#include <iostream>
#include <string>
#include <string_view>
Go to the source code of this file.
Macros | |
#define | LITTLE_ENDIAN 1234 |
#define | BIG_ENDIAN 4321 |
#define | FIXEDPOINT_FACTOR 1000.0f |
#define | F1000_MIN ((float)(s32)((float)(-0x7FFFFFFF - 1) / FIXEDPOINT_FACTOR)) |
#define | F1000_MAX ((float)(s32)((float)(0x7FFFFFFF) / FIXEDPOINT_FACTOR)) |
#define | STRING_MAX_LEN 0xFFFF |
#define | WIDE_STRING_MAX_LEN 0xFFFF |
#define | LONG_STRING_MAX_LEN (64 * 1024 * 1024) |
#define | MAKE_STREAM_READ_FXN(T, N, S) |
#define | MAKE_STREAM_WRITE_FXN(T, N, S) |
Functions | |
u16 | readU16 (const u8 *data) |
u32 | readU32 (const u8 *data) |
u64 | readU64 (const u8 *data) |
void | writeU16 (u8 *data, u16 i) |
void | writeU32 (u8 *data, u32 i) |
void | writeU64 (u8 *data, u64 i) |
u8 | readU8 (const u8 *data) |
s8 | readS8 (const u8 *data) |
s16 | readS16 (const u8 *data) |
s32 | readS32 (const u8 *data) |
s64 | readS64 (const u8 *data) |
f32 | readF1000 (const u8 *data) |
f32 | readF32 (const u8 *data) |
video::SColor | readARGB8 (const u8 *data) |
v2s16 | readV2S16 (const u8 *data) |
v3s16 | readV3S16 (const u8 *data) |
v2s32 | readV2S32 (const u8 *data) |
v3s32 | readV3S32 (const u8 *data) |
v3f | readV3F1000 (const u8 *data) |
v2f | readV2F32 (const u8 *data) |
v3f | readV3F32 (const u8 *data) |
void | writeU8 (u8 *data, u8 i) |
void | writeS8 (u8 *data, s8 i) |
void | writeS16 (u8 *data, s16 i) |
void | writeS32 (u8 *data, s32 i) |
void | writeS64 (u8 *data, s64 i) |
void | writeF1000 (u8 *data, f32 i) |
void | writeF32 (u8 *data, f32 i) |
void | writeARGB8 (u8 *data, video::SColor p) |
void | writeV2S16 (u8 *data, v2s16 p) |
void | writeV3S16 (u8 *data, v3s16 p) |
void | writeV2S32 (u8 *data, v2s32 p) |
void | writeV3S32 (u8 *data, v3s32 p) |
void | writeV3F1000 (u8 *data, v3f p) |
void | writeV2F32 (u8 *data, v2f p) |
void | writeV3F32 (u8 *data, v3f p) |
MAKE_STREAM_READ_FXN (u8, U8, 1) | |
MAKE_STREAM_READ_FXN (u16, U16, 2) | |
MAKE_STREAM_READ_FXN (u32, U32, 4) | |
MAKE_STREAM_READ_FXN (u64, U64, 8) | |
MAKE_STREAM_READ_FXN (s8, S8, 1) | |
MAKE_STREAM_READ_FXN (s16, S16, 2) | |
MAKE_STREAM_READ_FXN (s32, S32, 4) | |
MAKE_STREAM_READ_FXN (s64, S64, 8) | |
MAKE_STREAM_READ_FXN (f32, F1000, 4) | |
MAKE_STREAM_READ_FXN (f32, F32, 4) | |
MAKE_STREAM_READ_FXN (v2s16, V2S16, 4) | |
MAKE_STREAM_READ_FXN (v3s16, V3S16, 6) | |
MAKE_STREAM_READ_FXN (v2s32, V2S32, 8) | |
MAKE_STREAM_READ_FXN (v3s32, V3S32, 12) | |
MAKE_STREAM_READ_FXN (v3f, V3F1000, 12) | |
MAKE_STREAM_READ_FXN (v2f, V2F32, 8) | |
MAKE_STREAM_READ_FXN (v3f, V3F32, 12) | |
MAKE_STREAM_READ_FXN (video::SColor, ARGB8, 4) | |
MAKE_STREAM_WRITE_FXN (u8, U8, 1) | |
MAKE_STREAM_WRITE_FXN (u16, U16, 2) | |
MAKE_STREAM_WRITE_FXN (u32, U32, 4) | |
MAKE_STREAM_WRITE_FXN (u64, U64, 8) | |
MAKE_STREAM_WRITE_FXN (s8, S8, 1) | |
MAKE_STREAM_WRITE_FXN (s16, S16, 2) | |
MAKE_STREAM_WRITE_FXN (s32, S32, 4) | |
MAKE_STREAM_WRITE_FXN (s64, S64, 8) | |
MAKE_STREAM_WRITE_FXN (f32, F1000, 4) | |
MAKE_STREAM_WRITE_FXN (f32, F32, 4) | |
MAKE_STREAM_WRITE_FXN (v2s16, V2S16, 4) | |
MAKE_STREAM_WRITE_FXN (v3s16, V3S16, 6) | |
MAKE_STREAM_WRITE_FXN (v2s32, V2S32, 8) | |
MAKE_STREAM_WRITE_FXN (v3s32, V3S32, 12) | |
MAKE_STREAM_WRITE_FXN (v3f, V3F1000, 12) | |
MAKE_STREAM_WRITE_FXN (v2f, V2F32, 8) | |
MAKE_STREAM_WRITE_FXN (v3f, V3F32, 12) | |
MAKE_STREAM_WRITE_FXN (video::SColor, ARGB8, 4) | |
float | clampToF1000 (float v) |
v3f | clampToF1000 (v3f v) |
std::string | serializeString16 (std::string_view plain) |
std::string | deSerializeString16 (std::istream &is) |
std::string | serializeString32 (std::string_view plain) |
std::string | deSerializeString32 (std::istream &is) |
std::string | serializeJsonString (std::string_view plain) |
std::string | deSerializeJsonString (std::istream &is) |
std::string | serializeJsonStringIfNeeded (std::string_view s) |
std::string | deSerializeJsonStringIfNeeded (std::istream &is) |
Variables | |
FloatType | g_serialize_f32_type |
#define BIG_ENDIAN 4321 |
#define F1000_MAX ((float)(s32)((float)(0x7FFFFFFF) / FIXEDPOINT_FACTOR)) |
Referenced by clampToF1000(), TestSerialization::testStreamRead(), TestSerialization::testStreamWrite(), and writeF1000().
#define F1000_MIN ((float)(s32)((float)(-0x7FFFFFFF - 1) / FIXEDPOINT_FACTOR)) |
Referenced by clampToF1000(), TestSerialization::testStreamRead(), TestSerialization::testStreamWrite(), and writeF1000().
#define FIXEDPOINT_FACTOR 1000.0f |
Referenced by readF1000(), and writeF1000().
#define LITTLE_ENDIAN 1234 |
#define LONG_STRING_MAX_LEN (64 * 1024 * 1024) |
#define MAKE_STREAM_READ_FXN | ( | T, | |
N, | |||
S ) |
#define MAKE_STREAM_WRITE_FXN | ( | T, | |
N, | |||
S ) |
#define STRING_MAX_LEN 0xFFFF |
#define WIDE_STRING_MAX_LEN 0xFFFF |
Referenced by NetworkPacket::operator<<().
|
inline |
References F1000_MAX, and F1000_MIN.
Referenced by clampToF1000(), LuaEntitySAO::getStaticData(), and StaticObject::serialize().
std::string deSerializeJsonString | ( | std::istream & | is | ) |
std::string deSerializeJsonStringIfNeeded | ( | std::istream & | is | ) |
References deSerializeJsonString().
Referenced by ItemStack::deSerialize(), ItemStackMetadata::deSerialize(), and TestSerialization::testSerializeJsonString().
std::string deSerializeString16 | ( | std::istream & | is | ) |
References readU16().
Referenced by LuaEntitySAO::LuaEntitySAO(), content_nodemeta_deserialize_legacy_body(), content_nodemeta_deserialize_legacy_meta(), CItemDefManager::deSerialize(), ContentFeatures::deSerialize(), ItemDefinition::deSerialize(), NameIdMapping::deSerialize(), NodeDefManager::deSerialize(), NodeMetadata::deSerialize(), ObjectProperties::deSerialize(), StaticObject::deSerialize(), TileDef::deSerialize(), ToolCapabilities::deSerialize(), MapBlock::deSerialize_pre22(), Schematic::deserializeFromMts(), SoundSpec::deSerializeSimple(), Pointabilities::deSerializeTypeMap(), AuthDatabaseLevelDB::getAuth(), Client::handleCommand_ActiveObjectMessages(), Client::handleCommand_HudSetSky(), PlayerDatabaseLevelDB::loadPlayer(), GenericCAO::processInitData(), GenericCAO::processMessage(), TestSerialization::testDeSerializeString(), TestMapBlock::testSave29(), and TestSerialization::testStreamRead().
std::string deSerializeString32 | ( | std::istream & | is | ) |
References itos(), LONG_STRING_MAX_LEN, and readU32().
Referenced by LuaEntitySAO::LuaEntitySAO(), content_nodemeta_deserialize_legacy_body(), NodeDefManager::deSerialize(), NodeMetadata::deSerialize(), ParticleParameters::deSerialize(), ServerParticleTexture::deSerialize(), Client::handleCommand_AddParticleSpawner(), PlayerDatabaseLevelDB::loadPlayer(), GenericCAO::processInitData(), TestSerialization::testDeSerializeLongString(), and TestSerialization::testStreamRead().
MAKE_STREAM_READ_FXN | ( | f32 | , |
F1000 | , | ||
4 | ) |
MAKE_STREAM_READ_FXN | ( | f32 | , |
F32 | , | ||
4 | ) |
MAKE_STREAM_READ_FXN | ( | s16 | , |
S16 | , | ||
2 | ) |
MAKE_STREAM_READ_FXN | ( | s32 | , |
S32 | , | ||
4 | ) |
MAKE_STREAM_READ_FXN | ( | s64 | , |
S64 | , | ||
8 | ) |
MAKE_STREAM_READ_FXN | ( | s8 | , |
S8 | , | ||
1 | ) |
MAKE_STREAM_READ_FXN | ( | u16 | , |
U16 | , | ||
2 | ) |
MAKE_STREAM_READ_FXN | ( | u32 | , |
U32 | , | ||
4 | ) |
MAKE_STREAM_READ_FXN | ( | u64 | , |
U64 | , | ||
8 | ) |
MAKE_STREAM_READ_FXN | ( | u8 | , |
U8 | , | ||
1 | ) |
MAKE_STREAM_READ_FXN | ( | v2f | , |
V2F32 | , | ||
8 | ) |
MAKE_STREAM_READ_FXN | ( | v2s16 | , |
V2S16 | , | ||
4 | ) |
MAKE_STREAM_READ_FXN | ( | v2s32 | , |
V2S32 | , | ||
8 | ) |
MAKE_STREAM_READ_FXN | ( | v3f | , |
V3F1000 | , | ||
12 | ) |
MAKE_STREAM_READ_FXN | ( | v3f | , |
V3F32 | , | ||
12 | ) |
MAKE_STREAM_READ_FXN | ( | v3s16 | , |
V3S16 | , | ||
6 | ) |
MAKE_STREAM_READ_FXN | ( | v3s32 | , |
V3S32 | , | ||
12 | ) |
MAKE_STREAM_READ_FXN | ( | video::SColor | , |
ARGB8 | , | ||
4 | ) |
MAKE_STREAM_WRITE_FXN | ( | f32 | , |
F1000 | , | ||
4 | ) |
MAKE_STREAM_WRITE_FXN | ( | f32 | , |
F32 | , | ||
4 | ) |
MAKE_STREAM_WRITE_FXN | ( | s16 | , |
S16 | , | ||
2 | ) |
MAKE_STREAM_WRITE_FXN | ( | s32 | , |
S32 | , | ||
4 | ) |
MAKE_STREAM_WRITE_FXN | ( | s64 | , |
S64 | , | ||
8 | ) |
MAKE_STREAM_WRITE_FXN | ( | s8 | , |
S8 | , | ||
1 | ) |
MAKE_STREAM_WRITE_FXN | ( | u16 | , |
U16 | , | ||
2 | ) |
MAKE_STREAM_WRITE_FXN | ( | u32 | , |
U32 | , | ||
4 | ) |
MAKE_STREAM_WRITE_FXN | ( | u64 | , |
U64 | , | ||
8 | ) |
MAKE_STREAM_WRITE_FXN | ( | u8 | , |
U8 | , | ||
1 | ) |
MAKE_STREAM_WRITE_FXN | ( | v2f | , |
V2F32 | , | ||
8 | ) |
MAKE_STREAM_WRITE_FXN | ( | v2s16 | , |
V2S16 | , | ||
4 | ) |
MAKE_STREAM_WRITE_FXN | ( | v2s32 | , |
V2S32 | , | ||
8 | ) |
MAKE_STREAM_WRITE_FXN | ( | v3f | , |
V3F1000 | , | ||
12 | ) |
MAKE_STREAM_WRITE_FXN | ( | v3f | , |
V3F32 | , | ||
12 | ) |
MAKE_STREAM_WRITE_FXN | ( | v3s16 | , |
V3S16 | , | ||
6 | ) |
MAKE_STREAM_WRITE_FXN | ( | v3s32 | , |
V3S32 | , | ||
12 | ) |
MAKE_STREAM_WRITE_FXN | ( | video::SColor | , |
ARGB8 | , | ||
4 | ) |
|
inline |
References p(), and readU32().
Referenced by ContentFeatures::deSerialize(), ItemDefinition::deSerialize(), ObjectProperties::deSerialize(), WearBarParams::deserialize(), Client::handleCommand_HudSetSky(), NetworkPacket::operator>>(), and TestSerialization::testStreamRead().
|
inline |
References FIXEDPOINT_FACTOR, and readS32().
Referenced by LuaEntitySAO::LuaEntitySAO(), NodeTimer::deSerialize(), readV3F1000(), and TestSerialization::testStreamRead().
|
inline |
References FLOATTYPE_SLOW, FLOATTYPE_SYSTEM, FLOATTYPE_UNKNOWN, g_serialize_f32_type, getFloatSerializationType(), readF32(), readU32(), and u32Tof32Slow().
Referenced by ContentFeatures::deSerialize(), ItemDefinition::deSerialize(), ObjectProperties::deSerialize(), ParticleParameters::deSerialize(), ParticleParamTypes::RangedParameter< T >::deSerialize(), ParticleParamTypes::TweenedParameter< T >::deSerialize(), TileAnimationParams::deSerialize(), ToolCapabilities::deSerialize(), WearBarParams::deserialize(), SoundSpec::deSerializeSimple(), Client::handleCommand_AddParticleSpawner(), PlayerDatabaseLevelDB::loadPlayer(), NetworkPacket::operator>>(), GenericCAO::processMessage(), readF32(), readV2F32(), and readV3F32().
|
inline |
References readU16().
Referenced by content_nodemeta_deserialize_legacy_meta(), ContentFeatures::deSerialize(), ItemDefinition::deSerialize(), NodeMetadataList::deSerialize(), ToolCapabilities::deSerialize(), NetworkPacket::operator>>(), GenericCAO::processMessage(), readV2S16(), readV3S16(), and TestSerialization::testStreamRead().
|
inline |
References readU32().
Referenced by Client::handleCommand_HudSetParam(), NetworkPacket::operator>>(), readF1000(), readV2S32(), readV3S32(), and TestSerialization::testStreamRead().
|
inline |
References readU64().
Referenced by AuthDatabaseLevelDB::getAuth(), and TestSerialization::testStreamRead().
|
inline |
References readU8().
Referenced by ObjectProperties::deSerialize(), and TestSerialization::testStreamRead().
|
inline |
Referenced by LuaEntitySAO::LuaEntitySAO(), content_nodemeta_deserialize_legacy(), CItemDefManager::deSerialize(), ContentFeatures::deSerialize(), ItemDefinition::deSerialize(), MapBlock::deSerialize(), MapNode::deSerialize(), NameIdMapping::deSerialize(), NodeBox::deSerialize(), NodeDefManager::deSerialize(), NodeMetadataList::deSerialize(), NodeTimerList::deSerialize(), ObjectProperties::deSerialize(), ParticleParamTypes::TweenedParameter< T >::deSerialize(), PointedThing::deSerialize(), StaticObjectList::deSerialize(), TileAnimationParams::deSerialize(), TileDef::deSerialize(), ToolCapabilities::deSerialize(), AreaStore::deserialize(), WearBarParams::deserialize(), MapBlock::deSerialize_pre22(), MapNode::deSerializeBulk(), Schematic::deserializeFromMts(), ClientMediaDownloader::deSerializeHashSet(), deSerializeString16(), AuthDatabaseLevelDB::getAuth(), con::BufferedPacket::getSeqnum(), NetworkPacket::getU16(), Client::handleCommand_ActiveObjectMessages(), Client::handleCommand_AddParticleSpawner(), Client::handleCommand_HudSetSky(), con::ConnectionReceiveThread::handlePacketType_Control(), con::ConnectionReceiveThread::handlePacketType_Reliable(), con::IncomingSplitBuffer::insert(), PlayerDatabaseLevelDB::loadPlayer(), NetworkPacket::operator>>(), NetworkPacket::operator>>(), NetworkPacket::operator>>(), GenericCAO::processInitData(), GenericCAO::processMessage(), NetworkPacket::putRawPacket(), con::readPeerId(), readS16(), TestConnection::testHelpers(), TestMapBlock::testSave29(), and TestSerialization::testStreamRead().
|
inline |
Referenced by content_nodemeta_deserialize_legacy_body(), decompress(), ContentFeatures::deSerialize(), MapBlock::deSerialize(), NodeMetadata::deSerialize(), ObjectProperties::deSerialize(), ToolCapabilities::deSerialize(), AreaStore::deserialize(), MapBlock::deSerialize_pre22(), Schematic::deserializeFromMts(), ClientMediaDownloader::deSerializeHashSet(), deSerializeString32(), Pointabilities::deSerializeTypeMap(), Client::handleCommand_AddParticleSpawner(), PlayerDatabaseLevelDB::loadPlayer(), NetworkPacket::operator>>(), readARGB8(), readF32(), NetworkPacket::readLongString(), readS32(), con::ConnectionReceiveThread::receive(), TestConnection::testHelpers(), and TestSerialization::testStreamRead().
|
inline |
Referenced by NetworkPacket::operator>>(), readS64(), and TestSerialization::testStreamRead().
|
inline |
Referenced by LuaEntitySAO::LuaEntitySAO(), content_nodemeta_deserialize_legacy_body(), CItemDefManager::deSerialize(), ContentFeatures::deSerialize(), ItemDefinition::deSerialize(), MapBlock::deSerialize(), MapNode::deSerialize(), NameIdMapping::deSerialize(), NodeBox::deSerialize(), NodeDefManager::deSerialize(), NodeMetadata::deSerialize(), NodeMetadataList::deSerialize(), NodeTimerList::deSerialize(), ObjectProperties::deSerialize(), ParticleParameters::deSerialize(), ParticleParamTypes::TweenedParameter< T >::deSerialize(), Pointabilities::deSerialize(), PointedThing::deSerialize(), StaticObject::deSerialize(), StaticObjectList::deSerialize(), TileAnimationParams::deSerialize(), TileDef::deSerialize(), ToolCapabilities::deSerialize(), TouchInteraction::deSerialize(), AreaStore::deserialize(), WearBarParams::deserialize(), ServerMap::deSerializeBlock(), MapNode::deSerializeBulk(), Schematic::deserializeFromMts(), MapBlock::deSerializeNetworkSpecific(), Pointabilities::deSerializePointabilityType(), AuthDatabaseLevelDB::getAuth(), NetworkPacket::getU8(), Client::handleCommand_AddParticleSpawner(), Client::handleCommand_HudSetSky(), con::ConnectionReceiveThread::handlePacketType_Control(), con::IncomingSplitBuffer::insert(), con::ReliablePacketBuffer::insert(), PlayerDatabaseLevelDB::loadPlayer(), NetworkPacket::operator>>(), NetworkPacket::operator>>(), NetworkPacket::operator>>(), GenericCAO::processInitData(), GenericCAO::processMessage(), con::ConnectionReceiveThread::processPacket(), con::readChannel(), readS8(), TestConnection::testHelpers(), TestMapBlock::testLoad20(), TestMapBlock::testLoad29(), TestMapBlock::testLoadNonStd(), TestMapBlock::testSave29(), and TestSerialization::testStreamRead().
|
inline |
References p(), and readF32().
Referenced by NetworkPacket::operator>>(), and GenericCAO::processMessage().
|
inline |
References p(), and readS16().
Referenced by ObjectProperties::deSerialize(), GenericCAO::processMessage(), and TestSerialization::testStreamRead().
|
inline |
References p(), and readS32().
Referenced by NetworkPacket::operator>>(), and TestSerialization::testStreamRead().
|
inline |
References p(), and readF1000().
Referenced by LuaEntitySAO::LuaEntitySAO(), StaticObject::deSerialize(), and TestSerialization::testStreamRead().
|
inline |
References p(), and readF32().
Referenced by ItemDefinition::deSerialize(), NodeBox::deSerialize(), ObjectProperties::deSerialize(), ParticleParameters::deSerialize(), PlayerDatabaseLevelDB::loadPlayer(), NetworkPacket::operator>>(), GenericCAO::processInitData(), and GenericCAO::processMessage().
|
inline |
References p(), and readS16().
Referenced by PointedThing::deSerialize(), AreaStore::deserialize(), Schematic::deserializeFromMts(), NetworkPacket::operator>>(), and TestSerialization::testStreamRead().
|
inline |
References p(), and readS32().
Referenced by NetworkPacket::operator>>(), and TestSerialization::testStreamRead().
std::string serializeJsonString | ( | std::string_view | plain | ) |
References hex_chars.
Referenced by ClientEnvironment::addActiveObject(), serializeJsonStringIfNeeded(), TestSerialization::testSerializeJsonString(), and RollbackAction::toString().
std::string serializeJsonStringIfNeeded | ( | std::string_view | s | ) |
References serializeJsonString().
Referenced by ItemStack::serialize(), ItemStackMetadata::serialize(), and TestSerialization::testSerializeJsonString().
std::string serializeString16 | ( | std::string_view | plain | ) |
References STRING_MAX_LEN, and writeU16().
Referenced by Server::AsyncRunStep(), LuaEntitySAO::generateSetTextureModCommand(), UnitSAO::generateUpdateArmorGroupsCommand(), UnitSAO::generateUpdateAttachmentCommand(), UnitSAO::generateUpdateBoneOverrideCommand(), LuaEntitySAO::getClientInitializationData(), PlayerSAO::getClientInitializationData(), LuaEntitySAO::getStaticData(), AuthDatabaseLevelDB::saveAuth(), PlayerDatabaseLevelDB::savePlayer(), CItemDefManager::serialize(), ContentFeatures::serialize(), ItemDefinition::serialize(), NameIdMapping::serialize(), NodeDefManager::serialize(), NodeMetadata::serialize(), ObjectProperties::serialize(), StaticObject::serialize(), TileDef::serialize(), ToolCapabilities::serialize(), SoundSpec::serializeSimple(), Schematic::serializeToMts(), Pointabilities::serializeTypeMap(), TestSerialization::testDeSerializeString(), TestSerialization::testSerializeString(), and TestSerialization::testStreamWrite().
std::string serializeString32 | ( | std::string_view | plain | ) |
References LONG_STRING_MAX_LEN, and writeU32().
Referenced by ServerActiveObject::generateUpdateInfantCommand(), LuaEntitySAO::getClientInitializationData(), PlayerSAO::getClientInitializationData(), LuaEntitySAO::getStaticData(), PlayerDatabaseLevelDB::savePlayer(), NodeDefManager::serialize(), NodeMetadata::serialize(), ParticleParameters::serialize(), ServerParticleTexture::serialize(), TestSerialization::testDeSerializeLongString(), TestSerialization::testSerializeLongString(), and TestSerialization::testStreamWrite().
|
inline |
References p(), and writeU32().
Referenced by ContentFeatures::serialize(), ItemDefinition::serialize(), ObjectProperties::serialize(), WearBarParams::serialize(), and TestSerialization::testStreamWrite().
|
inline |
References F1000_MAX, F1000_MIN, FIXEDPOINT_FACTOR, and writeS32().
Referenced by LuaEntitySAO::getStaticData(), NodeTimer::serialize(), TestSerialization::testStreamWrite(), and writeV3F1000().
|
inline |
References f32Tou32Slow(), FLOATTYPE_SLOW, FLOATTYPE_SYSTEM, FLOATTYPE_UNKNOWN, g_serialize_f32_type, getFloatSerializationType(), writeF32(), and writeU32().
Referenced by LuaEntitySAO::generateSetSpriteCommand(), UnitSAO::generateUpdateAnimationCommand(), UnitSAO::generateUpdateAnimationSpeedCommand(), UnitSAO::generateUpdateBoneOverrideCommand(), PlayerSAO::generateUpdatePhysicsOverrideCommand(), UnitSAO::generateUpdatePositionCommand(), NetworkPacket::operator<<(), PlayerDatabaseLevelDB::savePlayer(), ContentFeatures::serialize(), ItemDefinition::serialize(), ObjectProperties::serialize(), ParticleParameters::serialize(), ParticleParamTypes::RangedParameter< T >::serialize(), ParticleParamTypes::TweenedParameter< T >::serialize(), TileAnimationParams::serialize(), ToolCapabilities::serialize(), WearBarParams::serialize(), SoundSpec::serializeSimple(), writeF32(), writeV2F32(), and writeV3F32().
|
inline |
References writeU16().
Referenced by UnitSAO::generateUpdateArmorGroupsCommand(), UnitSAO::generateUpdateAttachmentCommand(), PlayerSAO::getClientInitializationData(), ContentFeatures::serialize(), ItemDefinition::serialize(), NodeMetadataList::serialize(), ToolCapabilities::serialize(), TestSerialization::testStreamWrite(), writeV2S16(), and writeV3S16().
|
inline |
References writeU32().
Referenced by Server::hudSetHotbarItemcount(), TestSerialization::testStreamWrite(), writeF1000(), writeV2S32(), and writeV3S32().
|
inline |
References writeU64().
Referenced by AuthDatabaseLevelDB::saveAuth(), and TestSerialization::testStreamWrite().
|
inline |
References writeU8().
Referenced by ObjectProperties::serialize(), and TestSerialization::testStreamWrite().
|
inline |
Referenced by Server::AsyncRunStep(), con::Connection::createPeer(), UnitSAO::generatePunchCommand(), LuaEntitySAO::generateSetSpriteCommand(), UnitSAO::generateUpdateArmorGroupsCommand(), ServerActiveObject::generateUpdateInfantCommand(), LuaEntitySAO::getClientInitializationData(), PlayerSAO::getClientInitializationData(), LuaEntitySAO::getStaticData(), con::makePacket(), con::makeReliablePacket(), con::makeSplitPacket(), NetworkPacket::oldForgePacket(), NetworkPacket::operator<<(), NetworkPacket::operator<<(), Client::request_media(), AuthDatabaseLevelDB::saveAuth(), PlayerDatabaseLevelDB::savePlayer(), con::Connection::sendAck(), Server::SendAddParticleSpawner(), AreaStore::serialize(), CItemDefManager::serialize(), ContentFeatures::serialize(), ItemDefinition::serialize(), MapBlock::serialize(), MapNode::serialize(), NameIdMapping::serialize(), NodeBox::serialize(), NodeDefManager::serialize(), NodeMetadataList::serialize(), NodeTimerList::serialize(), ObjectProperties::serialize(), ParticleParameters::serialize(), ParticleParamTypes::TweenedParameter< T >::serialize(), PointedThing::serialize(), StaticObjectList::serialize(), TileAnimationParams::serialize(), TileDef::serialize(), ToolCapabilities::serialize(), WearBarParams::serialize(), MapNode::serializeBulk(), ClientMediaDownloader::serializeRequiredHashSet(), serializeString16(), Schematic::serializeToMts(), TestSerialization::testStreamWrite(), and writeS16().
|
inline |
Referenced by compress(), encodePNG(), con::makePacket(), NetworkPacket::operator<<(), NetworkPacket::operator<<(), PlayerDatabaseLevelDB::savePlayer(), AreaStore::serialize(), ContentFeatures::serialize(), MapBlock::serialize(), NodeMetadata::serialize(), ToolCapabilities::serialize(), ClientMediaDownloader::serializeRequiredHashSet(), serializeString32(), Schematic::serializeToMts(), Pointabilities::serializeTypeMap(), TestSerialization::testStreamWrite(), writeARGB8(), writeChunk(), writeF32(), and writeS32().
|
inline |
Referenced by NetworkPacket::operator<<(), TestSerialization::testStreamWrite(), and writeS64().
|
inline |
Referenced by con::Connection::createPeer(), con::ConnectionSendThread::disconnect(), con::ConnectionSendThread::disconnect_peer(), encodePNG(), UnitSAO::generatePunchCommand(), UnitSAO::generateSetPropertiesCommand(), LuaEntitySAO::generateSetSpriteCommand(), LuaEntitySAO::generateSetTextureModCommand(), UnitSAO::generateUpdateAnimationCommand(), UnitSAO::generateUpdateAnimationSpeedCommand(), UnitSAO::generateUpdateArmorGroupsCommand(), UnitSAO::generateUpdateAttachmentCommand(), UnitSAO::generateUpdateBoneOverrideCommand(), ServerActiveObject::generateUpdateInfantCommand(), PlayerSAO::generateUpdatePhysicsOverrideCommand(), UnitSAO::generateUpdatePositionCommand(), LuaEntitySAO::getClientInitializationData(), PlayerSAO::getClientInitializationData(), LuaEntitySAO::getStaticData(), con::makeOriginalPacket(), con::makePacket(), con::makeReliablePacket(), con::makeSplitPacket(), NetworkPacket::operator<<(), NetworkPacket::operator<<(), NetworkPacket::operator<<(), con::UDPPeer::Ping(), recompress_map_database(), AuthDatabaseLevelDB::saveAuth(), PlayerDatabaseLevelDB::savePlayer(), con::Connection::sendAck(), Server::SendAddParticleSpawner(), AreaStore::serialize(), CItemDefManager::serialize(), ContentFeatures::serialize(), ItemDefinition::serialize(), MapBlock::serialize(), MapNode::serialize(), NameIdMapping::serialize(), NodeBox::serialize(), NodeDefManager::serialize(), NodeMetadata::serialize(), NodeMetadataList::serialize(), NodeTimerList::serialize(), ObjectProperties::serialize(), ParticleParameters::serialize(), ParticleParamTypes::TweenedParameter< T >::serialize(), Pointabilities::serialize(), PointedThing::serialize(), StaticObject::serialize(), StaticObjectList::serialize(), TileAnimationParams::serialize(), TileDef::serialize(), ToolCapabilities::serialize(), TouchInteraction::serialize(), WearBarParams::serialize(), MapNode::serializeBulk(), MapBlock::serializeNetworkSpecific(), Pointabilities::serializePointabilityType(), Schematic::serializeToMts(), Pointabilities::serializeTypeMap(), TestSerialization::testStreamWrite(), and writeS8().
|
inline |
References p(), and writeF32().
Referenced by UnitSAO::generateUpdateAnimationCommand().
|
inline |
References p(), and writeS16().
Referenced by LuaEntitySAO::generateSetSpriteCommand(), ObjectProperties::serialize(), and TestSerialization::testStreamWrite().
|
inline |
References p(), and writeS32().
Referenced by TestSerialization::testStreamWrite().
|
inline |
References p(), and writeF1000().
Referenced by LuaEntitySAO::getStaticData(), StaticObject::serialize(), and TestSerialization::testStreamWrite().
|
inline |
References p(), and writeF32().
Referenced by UnitSAO::generateUpdateAttachmentCommand(), UnitSAO::generateUpdateBoneOverrideCommand(), UnitSAO::generateUpdatePositionCommand(), LuaEntitySAO::getClientInitializationData(), PlayerSAO::getClientInitializationData(), PlayerDatabaseLevelDB::savePlayer(), ItemDefinition::serialize(), NodeBox::serialize(), ObjectProperties::serialize(), and ParticleParameters::serialize().
|
inline |
References p(), and writeS16().
Referenced by AreaStore::serialize(), PointedThing::serialize(), Schematic::serializeToMts(), and TestSerialization::testStreamWrite().
|
inline |
References p(), and writeS32().
Referenced by TestSerialization::testStreamWrite().
|
extern |
Referenced by readF32(), and writeF32().