MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / DecodeHeader

Method DecodeHeader

src/Nazara/Network/NetPacket.cpp:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 */
66
67 bool NetPacket::DecodeHeader(const void* data, UInt16* packetSize, UInt16* netCode)
68 {
69 MemoryView stream(data, HeaderSize);
70
71 SerializationContext context;
72 context.stream = &stream;
73
74 return Unserialize(context, packetSize) && Unserialize(context, netCode);
75 }
76
77 /*!
78 * \brief Encodes the header of the packet

Callers

nothing calls this directly

Calls 1

UnserializeFunction · 0.50

Tested by

no test coverage detected