Property | Type | Description | |
---|---|---|---|
Data | byte[] | ||
Destination | |||
Kind | DataPacketKind | ||
ReverseAnswer | bool | ||
Sender |
Method | Description | |
---|---|---|
Clone ( ) : object |
Clone this packet, creating an exact copy. As the clone function is an implementation of IClonable it must return an object.
|
|
Create ( |
Merges 2 packets together
|
|
Create ( |
Creates a new message based on an existing packed and use the "size" to extract only the first part.
|
|
Create ( byte buff ) : |
||
Create ( byte buff, int size, |
Creates a new message based on the byte buffer however use only the first "size" byte for it.
|
|
Create ( int size ) : |
||
Create ( int payloadSize, |
Creates a new message with the given payload size and sets the payload size correctly.
|
|
GetDataAsString ( ) : string |
Retreives the payload as string.
|
|
GetUInt16 ( int position ) : |
Returns an UInt16 at a given position
|
|
GetUInt32 ( int position ) : |
Returns an UInt32 at a given position
|
|
Padding ( int size ) : int | ||
SetBytes ( int position, byte buff ) : void | ||
SetDataAsString ( string str ) : void | ||
SetUInt16 ( int position, |
Writes an UInt16 at a given position
|
|
SetUInt32 ( int position, |
Writes an UInt32 at a given position
|
|
ShowPools ( ) : void | ||
SkipSize ( |
Skips a given size from the data block
|
Method | Description | |
---|---|---|
DataPacket ( ) : System |
public static Create ( |
||
remaining | ||
newPacket | ||
return |
public static Create ( |
||
packet | ||
size | ||
reuse | bool | |
return |
public static Create ( byte buff ) : |
||
buff | byte | |
return |
public static Create ( byte buff, int size, |
||
buff | byte | |
size | int | |
chain | ||
reuseBuffer | bool | |
return |
public static Create ( int size ) : |
||
size | int | |
return |
public static Create ( int payloadSize, |
||
payloadSize | int | |
chain | ||
return |
public GetUInt16 ( int position ) : |
||
position | int | |
return |
public GetUInt32 ( int position ) : |
||
position | int | |
return |
public SetBytes ( int position, byte buff ) : void | ||
position | int | |
buff | byte | |
return | void |
public SetUInt16 ( int position, |
||
position | int | |
value | ||
return | void |
public SetUInt32 ( int position, |
||
position | int | |
value | ||
return | void |
public SkipSize ( |
||
size | ||
reuse | bool | |
return |
public IPEndPoint,System.Net Destination | ||
return |