MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ReadStructure

Function ReadStructure

Source/Engine/Networking/NetworkMessage.h:113–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112 template<typename T>
113 FORCE_INLINE void ReadStructure(const T& data)
114 {
115 ReadBytes((uint8*)&data, sizeof(data));
116 }
117
118#define DECL_READWRITE(type, name) \
119 FORCE_INLINE void Write##name(type value) { WriteBytes(reinterpret_cast<const uint8*>(&value), sizeof(type)); } \

Callers

nothing calls this directly

Calls 1

ReadBytesFunction · 0.85

Tested by

no test coverage detected