메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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. |
리턴 |
public static DecodeResponseMessage ( byte byteArr ) : |
||
byteArr | byte | The payload. |
리턴 |
public static DecodeSegmentInfoMessage ( byte byteArr ) : |
||
byteArr | byte | The payload. |
리턴 |
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 |
리턴 | byte[] |
public static GetMessageType ( byte byteArr ) : PCHC_MESSAGE_TYPE | ||
byteArr | byte | The payload. |
리턴 | PCHC_MESSAGE_TYPE |