Converts an array of unsigned short integers to an array of bytes.
Namespace: LLCryptoLib.HashAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public static byte[] UShortToByte( ushort[] array, int offset, int length ) |
Visual Basic |
---|
Public Shared Function UShortToByte ( _ array As UShort(), _ offset As Integer, _ length As Integer _ ) As Byte() |
Visual C++ |
---|
public: static array<unsigned char>^ UShortToByte( array<unsigned short>^ array, int offset, int length ) |
Parameters
- array
- Type: array<System..::..UInt16>[]()[][]
The array to convert.
- offset
- Type: System..::..Int32
Position in the array to begin the conversion.
- length
- Type: System..::..Int32
How many unsigned short integers in the array to convert.
Return Value
The unsigned short integers represented as a byte array.
Remarks
Assumes Little Endian.