Converts an array of unsigned short integers 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 ushort[] ByteToUShort(
	byte[] array,
	EndianType endian
)
Visual Basic (Declaration)
Public Shared Function ByteToUShort ( _
	array As Byte(), _
	endian As EndianType _
) As UShort()
Visual C++
public:
static array<unsigned short>^ ByteToUShort(
	array<unsigned char>^ array, 
	EndianType endian
)

Parameters

array
Type: array< System..::.Byte >[]()[]
The array to convert.
endian
Type: Classless.Hasher..::.EndianType
The order in which to read the bytes.

Return Value

The unsigned short integers represented as a byte array.

See Also