Converts an unsigned short integer 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 data ) |
| Visual Basic |
|---|
Public Shared Function UShortToByte ( _ data As UShort _ ) As Byte() |
| Visual C++ |
|---|
public: static array<unsigned char>^ UShortToByte( unsigned short data ) |
Parameters
- data
- Type: System..::..UInt16
The unsigned short integer to convert.
Return Value
The unsigned short integer represented as a byte array.
Remarks
Assumes Little Endian.