Свойство | Type | Description | |
---|---|---|---|
Packet | System |
Méthode | Description | |
---|---|---|
AddData ( byte data ) : void |
Adds a byte of data to the list.
|
|
AddInt ( int value ) : void |
Adds an int to this packet.
|
|
AddString ( String s ) : void |
Adds a string to this packet
|
|
GetData ( ) : byte[] |
Gets the data in this packet, excluding the header.
|
|
GetFullData ( ) : byte[] |
Converts the data in this packet to a byte array, this includes the header.
|
|
GetHeader ( ) : byte |
Gets the header of this packet.
|
|
GetPacketID ( ) : int |
Gets the packetID of this packet.
|
|
Packet ( byte header ) : System | ||
Packet ( byte header, byte data ) : System | ||
SetHeader ( byte header ) : void |
Sets the header of this byte. Also see ProtocolHeader.cs
|
|
SetPacketID ( byte bytes ) : void |
Sets the packet ID. Must be a length of 4!.
|
|
SetPacketID ( int packetID ) : void |
Sets the packet ID.
|
Méthode | Description | |
---|---|---|
Packet ( ) : System |
public AddData ( byte data ) : void | ||
data | byte | The byte to add |
Résultat | void |
public Packet ( byte header, byte data ) : System | ||
header | byte | |
data | byte | |
Résultat | System |
public SetHeader ( byte header ) : void | ||
header | byte | The header to give this packet |
Résultat | void |
public SetPacketID ( byte bytes ) : void | ||
bytes | byte | The bytes. |
Résultat | void |
public SetPacketID ( int packetID ) : void | ||
packetID | int | The packet id. |
Résultat | void |