Converts an unsigned short integer to an array of bytes.

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

Syntax

C#
public static byte[] UShortToByte(
	ushort data,
	EndianType endian
)
Visual Basic (Declaration)
Public Shared Function UShortToByte ( _
	data As UShort, _
	endian As EndianType _
) As Byte()
Visual C++
public:
static array<unsigned char>^ UShortToByte(
	unsigned short data, 
	EndianType endian
)

Parameters

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

Return Value

The unsigned short integer represented as a byte array.

See Also