Méthode | Description | |
---|---|---|
AppendToNode ( |
XmlSerialize
|
|
CreatePacket ( PacketType packetType ) : PacketBase |
Returns an uninitialized instance of the indicated packetType.
|
|
FullPacketBytes ( Byte Buffer, int PacketStartOffset ) : int | ||
FullPacketBytes ( uint pkt_len ) : int |
Caculate the size of a packet (including preamble) in bytes
|
|
GetPacketType ( |
Returns the packetType for a instance of one of the packet layouts classes.
|
|
GetPacketTypeFromBuffer ( byte buffer, int PacketStartOffset ) : PacketType | ||
GetSafePacketType ( |
||
GetTypeFromPacketType ( PacketType packetType ) : |
||
ParsePacket ( byte buffer, PacketBase &packet, string &errorMessage ) : PacketType |
ParsePacket
|
|
pkt_len ( int totalBytes ) : |
Méthode | Description | |
---|---|---|
Find_String_Length ( PacketBase body, System info ) : int | ||
Parse_Fields ( PacketBase obj, byte buffer, int offset, int size ) : int |
Parses a buffer that hold a packet data and updates the packet structure with data from the buffer.
|
|
Parse_String ( byte buffer, int offset, int strlen ) : string | ||
Parse_UInt16 ( byte buffer, int offset ) : |
||
Parse_UInt32 ( byte buffer, int offset ) : |
public AppendToNode ( |
||
elm | ||
Résultat |
public static CreatePacket ( PacketType packetType ) : PacketBase | ||
packetType | PacketType | Packet type to create. |
Résultat | PacketBase |
public static FullPacketBytes ( Byte Buffer, int PacketStartOffset ) : int | ||
Buffer | Byte | |
PacketStartOffset | int | |
Résultat | int |
public static FullPacketBytes ( uint pkt_len ) : int | ||
pkt_len | uint | value from pkt_len field of preamble |
Résultat | int |
public static GetPacketType ( |
||
packet | The packet instance | |
Résultat | PacketType |
public static GetPacketTypeFromBuffer ( byte buffer, int PacketStartOffset ) : PacketType | ||
buffer | byte | |
PacketStartOffset | int | |
Résultat | PacketType |
public static GetSafePacketType ( |
||
pkt_type | ||
Résultat | PacketType |
public static GetTypeFromPacketType ( PacketType packetType ) : |
||
packetType | PacketType | |
Résultat |
public static ParsePacket ( byte buffer, PacketBase &packet, string &errorMessage ) : PacketType | ||
buffer | byte | packet data to be parsed. |
packet | PacketBase | |
errorMessage | string | output parameter to hold any error message. |
Résultat | PacketType |
public static pkt_len ( int totalBytes ) : |
||
totalBytes | int | |
Résultat |