Converts bytes of the number UInt32 into the array of bytes.

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

Syntax

C#
[CLSCompliantAttribute(false)]
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static void ToByteArray(
	uint value,
	byte[] buffer,
	int offset,
	XByteOrder order
)

Parameters

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

Remarks

Writes 4 bytes of the number UInt32 into a array.

Exceptions

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

See Also