Method | Description | |
---|---|---|
DecodeInitialOfferMessage ( byte byteArr ) : |
Unmarshal the initial offer message.
|
|
DecodeResponseMessage ( byte byteArr ) : |
Unmarshal response message.
|
|
DecodeSegmentInfoMessage ( byte byteArr ) : |
Unmarshal the segment info message.
|
|
GetBytes ( byte buffer, int &index, int count ) : byte[] |
Get bytes from bytes.
|
|
GetMessageType ( byte byteArr ) : PCHC_MESSAGE_TYPE |
Unmarshal the incoming pchc message to get message type.
|
Method | Description | |
---|---|---|
GetUInt16 ( byte buffer, int &index, bool isBigEndian ) : ushort |
Parse ushort from bytes
|
|
GetUInt32 ( byte buffer, int &index, bool isBigEndian ) : uint |
Parse uint from bytes
|
|
ReverseByFlag ( bool isBigEndian, byte byteTemp ) : void |
reverse the bytes if it's not big endian.
|
public static DecodeInitialOfferMessage ( byte byteArr ) : |
||
byteArr | byte | The payload. |
return |
public static DecodeResponseMessage ( byte byteArr ) : |
||
byteArr | byte | The payload. |
return |
public static DecodeSegmentInfoMessage ( byte byteArr ) : |
||
byteArr | byte | The payload. |
return |
public static GetBytes ( byte buffer, int &index, int count ) : byte[] | ||
buffer | byte | the buffer stores the value. |
index | int | the index of start to parse |
count | int | count of bytes |
return | byte[] |
public static GetMessageType ( byte byteArr ) : PCHC_MESSAGE_TYPE | ||
byteArr | byte | The payload. |
return | PCHC_MESSAGE_TYPE |