| 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 |
nothing calls this directly
no test coverage detected