SemysPacket*Init |
01 | Initializes a created packet. |
02 |
void SemysPacket<type>Init(SemysPacket<type> *pPacket); |
03 |
Parameters:
|
04 |
Every packet has to be initialized with a corresponding function before it can
be used (Like with an object oriented constructor). The signature above is a placeholder for an actual type specific init function. |
05 | This function has to set the function pointers in the header and any further members that need initialization before they can be used (For example: List Entries). |
06 | This function assumes that the memory pPacket points to has been erased (all bytes set to 0x00) before. |
07 |
Example:
|
08 |
Reference: SemysPacket.h Implementation: Semys Library See Also: Packet Sub-System, SemysPacketDestroy() |
Goto: Main Page; This page is part of the Semys software documentation. See About: Documentation for details. |