Method | Description | |
---|---|---|
EncodeInitialOfferMessage ( |
Transform the INITIAL_OFFER_MESSAGE to a byte array
|
|
EncodeResponseMessage ( |
Transform the RESPONSE_MESSAGE to a byte array
|
|
EncodeSegmentInfoMessage ( |
Transform the SEGMENT_INFO_MESSAGE to a byte array
|
Method | Description | |
---|---|---|
GetBytesFromUint ( uint value, bool isBigEndian ) : byte[] |
Convert the uint type value to byte array.
|
|
GetBytesFromUint16 ( ushort value, bool isBigEndian ) : byte[] |
Convert the uint16 type value to byte array.
|
|
GetBytesFromUint32 ( uint value, bool isBigEndian ) : byte[] |
Convert the uint type value to byte array.
|
|
GetBytesFromUlong ( ulong value, bool isBigEndian ) : byte[] |
Convert the ulong type value to byte array.
|
|
GetBytesFromUshort ( ushort value, bool isBigEndian ) : byte[] |
Convert the uint16 type value to byte array.
|
|
Reverse ( byte data ) : byte[] |
Reverse the content of an array.
|
|
ReverseByFlag ( byte data, bool isBigEndian ) : void |
reverse the bytes if it's not big endian.
|
public static EncodeInitialOfferMessage ( |
||
initOfferMsg | The INITIAL_OFFER_MESSAGE message | |
return | byte[] |
public static EncodeResponseMessage ( |
||
responseMessage | The RESPONSE_MESSAGE message | |
return | byte[] |
public static EncodeSegmentInfoMessage ( |
||
segmentInfoMsg | The SEGMENT_INFO_MESSAGE message | |
return | byte[] |