Creates a byte array from the hexadecimal string. Each two characters are combined
to create one byte. First two hexadecimal characters become first byte in returned array.
Non-hexadecimal characters are ignored.
Namespace: LLCryptoLib.UtilsAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public static byte[] Hex2Bytes(
string hexInput
) |
Visual Basic |
---|
Public Shared Function Hex2Bytes ( _
hexInput As String _
) As Byte() |
Visual C++ |
---|
public:
static array<unsigned char>^ Hex2Bytes(
String^ hexInput
) |
Parameters
- hexInput
- Type: System..::..String
A hexadecimal string to convert to byte array
Return Value
A byte array, in the same left-to-right order as the hexString
Exceptions
Exception | Condition |
---|
System..::..ArgumentNullException | |
See Also