SemysPacketDecode

01 Decodes a packet from a stream.
02

SemysPacket *SemysPacketDecode(void const *pData, uint32 byteSize);

03 Parameters:
  • pData: Pointer to stream containing an encoded packet.
  • byteSize: How many bytes pData is long.
04 Return Values:
A decoded packet if successfull (caller takes ownership) or 0 on error.
05 This function first tries to create a packet according to the serialized type identification and then calls its specific decoder function.
06 This function fails if either the specified packet type is unknown or the corresponding decoder function failed.
07 A packet created by this function should be destroyed using SemysPacketDestroy().
08 Reference: SemysPacket.h
Implementation: Semys Library
See Also: Packet Sub-System, SemysPacketEncode(), SemysPacketDestroy()

Goto: Main Page; This page is part of the Semys software documentation. See About: Documentation for details.