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

Method EncodeHeader

src/Nazara/Network/NetPacket.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 */
85
86 bool NetPacket::EncodeHeader(void* data, UInt16 packetSize, UInt16 netCode)
87 {
88 MemoryView stream(data, HeaderSize);
89
90 SerializationContext context;
91 context.stream = &stream;
92
93 return Serialize(context, packetSize) && Serialize(context, netCode);
94 }
95
96 /*!
97 * \brief Operation to do when stream is empty

Callers

nothing calls this directly

Calls 1

SerializeFunction · 0.85

Tested by

no test coverage detected