Метод | Описание | |
---|---|---|
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 ) : |
Метод | Описание | |
---|---|---|
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 | ||
Результат |
public static CreatePacket ( PacketType packetType ) : PacketBase | ||
packetType | PacketType | Packet type to create. |
Результат | PacketBase |
public static FullPacketBytes ( Byte Buffer, int PacketStartOffset ) : int | ||
Buffer | Byte | |
PacketStartOffset | int | |
Результат | int |
public static FullPacketBytes ( uint pkt_len ) : int | ||
pkt_len | uint | value from pkt_len field of preamble |
Результат | int |
public static GetPacketType ( |
||
packet | The packet instance | |
Результат | PacketType |
public static GetPacketTypeFromBuffer ( byte buffer, int PacketStartOffset ) : PacketType | ||
buffer | byte | |
PacketStartOffset | int | |
Результат | PacketType |
public static GetSafePacketType ( |
||
pkt_type | ||
Результат | PacketType |
public static GetTypeFromPacketType ( PacketType packetType ) : |
||
packetType | PacketType | |
Результат |
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. |
Результат | PacketType |
public static pkt_len ( int totalBytes ) : |
||
totalBytes | int | |
Результат |