Converts bytes from the array to Int32.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static int ToInt32(
	byte[] buffer,
	int offset,
	XByteOrder order
)

Parameters

buffer
Type: array< System..::.Byte >[]()[]
The array of bytes.
offset
Type: System..::.Int32
The beginning.
order
Type: SGP.XUtility..::.XByteOrder
The byte order.

Return Value

The value of 4 bytes as Int32.

Exceptions

ExceptionCondition
System..::.ArgumentNullException buffer is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also