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