Converts an unsigned integer to an array of bytes.

Namespace: Classless.Hasher.Utilities
Assembly: Classless.Hasher (in Classless.Hasher.dll) Version: 0.9.4179.24336

Syntax

C#
public static byte[] UIntToByte(
	uint data,
	EndianType endian
)
Visual Basic
Public Shared Function UIntToByte ( _
	data As UInteger, _
	endian As EndianType _
) As Byte()
Visual C++
public:
static array<unsigned char>^ UIntToByte(
	unsigned int data, 
	EndianType endian
)

Parameters

data
Type: System..::..UInt32
The unsigned integer to convert.
endian
Type: Classless.Hasher..::..EndianType
The order in which to store the bytes.

Return Value

The unsigned integer represented as a byte array.

See Also