Method | Description | |
---|---|---|
ContainsOption ( PacketHeaderLongItems option ) : bool |
Check if a long option has been set.
|
|
ContainsOption ( PacketHeaderStringItems option ) : bool |
Check if a string option has been set.
|
|
Deserialize ( Stream inputStream ) : void | ||
Deserialize ( Stream inputStream, |
Deserializes from a memory stream to a PacketHeader object
|
|
GetOption ( PacketHeaderLongItems option ) : long |
Get a long option.
|
|
GetOption ( PacketHeaderStringItems options ) : string |
Get a string option
|
|
PacketHeader ( string packetTypeStr, long payloadPacketSize, |
Creates a new packetHeader
|
|
Serialize ( Stream outputStream ) : void | ||
SetOption ( PacketHeaderLongItems option, long Value ) : void |
Set a long option with the provided value.
|
|
SetOption ( PacketHeaderStringItems option, string Value ) : void |
Set a string option with the provided value.
|
Method | Description | |
---|---|---|
PacketHeader ( ) : System | ||
PacketHeader ( |
Constructor used for deserialisation
|
public ContainsOption ( PacketHeaderLongItems option ) : bool | ||
option | PacketHeaderLongItems | The long option to be checked. |
return | bool |
public ContainsOption ( PacketHeaderStringItems option ) : bool | ||
option | PacketHeaderStringItems | The string option to be checked. |
return | bool |
public Deserialize ( Stream inputStream ) : void | ||
inputStream | Stream | |
return | void |
public static Deserialize ( Stream inputStream, |
||
inputStream | Stream | The memory stream containing the serialized |
result | The deserialized |
|
return | void |
public GetOption ( PacketHeaderLongItems option ) : long | ||
option | PacketHeaderLongItems | The option to get |
return | long |
public GetOption ( PacketHeaderStringItems options ) : string | ||
options | PacketHeaderStringItems | The option to get |
return | string |
public PacketHeader ( string packetTypeStr, long payloadPacketSize, |
||
packetTypeStr | string | The packet type to be used. |
payloadPacketSize | long | The size on bytes of the payload |
sendReceiveOptions | Send receive options which may contain header relevant options. | |
requestedReturnPacketTypeStr | string | An optional field representing the expected return packet type |
checkSumHash | string | An optional field representing the payload checksum |
return | System |
public Serialize ( Stream outputStream ) : void | ||
outputStream | Stream | |
return | void |
public SetOption ( PacketHeaderLongItems option, long Value ) : void | ||
option | PacketHeaderLongItems | The option to set |
Value | long | The option value |
return | void |
public SetOption ( PacketHeaderStringItems option, string Value ) : void | ||
option | PacketHeaderStringItems | The option to set |
Value | string | The option value |
return | void |