Property | Type | Description | |
---|---|---|---|
Data | byte[] | ||
Destination | |||
NeedToFlush | bool | ||
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 ) : |
Creates a new message based on the byte buffer however use only the first "size" byte for it.
|
|
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 ) : |
||
Dispose ( ) : void | ||
GetDataAsString ( int offset, int maxSize = 40 ) : string |
Retreives the payload as string.
|
|
GetDouble ( int position ) : double | ||
GetFloat ( int position ) : float | ||
GetInt16 ( int position ) : short | ||
GetInt32 ( int position ) : |
||
GetPayload ( ) : byte[] | ||
GetSByte ( int position ) : sbyte | ||
GetUInt16 ( int position ) : |
Returns an UInt16 at a given position
|
|
GetUInt32 ( int position ) : |
Returns an UInt32 at a given position
|
|
SetBytes ( int position, byte buff ) : void | ||
SetDataAsString ( string str ) : void | ||
SetDouble ( int position, double value ) : void | ||
SetFloat ( int position, float value ) : void | ||
SetInt16 ( int position, short value ) : void | ||
SetInt32 ( int position, int value ) : void | ||
SetSByte ( int position, sbyte value ) : void | ||
SetUInt16 ( int position, |
Writes an UInt16 at a given position
|
|
SetUInt32 ( int position, |
Writes an UInt32 at a given position
|
|
SkipSize ( |
Skips a given size from the data block
|
Method | Description | |
---|---|---|
DataPacket ( ) : System |
public static Create ( |
||
remaining | ||
newPacket | ||
return |
public static Create ( |
||
packet | ||
size | ||
return |
public static Create ( byte buff ) : |
||
buff | byte | |
return |
public static Create ( byte buff, int size ) : |
||
buff | byte | |
size | int | |
return |
public static Create ( int size ) : |
||
size | int | |
return |
public GetDataAsString ( int offset, int maxSize = 40 ) : string | ||
offset | int | |
maxSize | int | |
return | string |
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 SetDouble ( int position, double value ) : void | ||
position | int | |
value | double | |
return | void |
public SetFloat ( int position, float value ) : void | ||
position | int | |
value | float | |
return | void |
public SetInt16 ( int position, short value ) : void | ||
position | int | |
value | short | |
return | void |
public SetInt32 ( int position, int value ) : void | ||
position | int | |
value | int | |
return | void |
public SetSByte ( int position, sbyte value ) : void | ||
position | int | |
value | sbyte | |
return | void |
public SetUInt16 ( int position, |
||
position | int | |
value | ||
return | void |
public SetUInt32 ( int position, |
||
position | int | |
value | ||
return | void |
public SkipSize ( |
||
size | ||
return |
public IPEndPoint,System.Net Destination | ||
return |