C# Class tiesky.com.SharmIpcInternals.BytesProcessing

显示文件 Open project: hhblaze/SharmIPC

Public Methods

Method Description
Substring ( this ar, int startIndex, int length ) : byte[]

Substring int-dimensional byte arrays

To_4_bytes_array_BigEndian ( this value ) : byte[]

From Int32 to 4 bytes array with BigEndian order (highest byte first, lowest last).

To_UInt32_BigEndian ( this value ) : uint

From 4 bytes array which is in BigEndian order (highest byte first, lowest last) makes uint. If array not equal 4 bytes throws exception. (0 to 4.294.967.295)

Method Details

Substring() public static method

Substring int-dimensional byte arrays
public static Substring ( this ar, int startIndex, int length ) : byte[]
ar this
startIndex int
length int
return byte[]

To_4_bytes_array_BigEndian() public static method

From Int32 to 4 bytes array with BigEndian order (highest byte first, lowest last).
public static To_4_bytes_array_BigEndian ( this value ) : byte[]
value this
return byte[]

To_UInt32_BigEndian() public static method

From 4 bytes array which is in BigEndian order (highest byte first, lowest last) makes uint. If array not equal 4 bytes throws exception. (0 to 4.294.967.295)
public static To_UInt32_BigEndian ( this value ) : uint
value this
return uint