Cnv.FromHex Method
Convert the specified string representation of a value consisting of hexadecimal (base 16) digits to an equivalent array of 8-bit unsigned integers.
Syntax
[C#]
public static byte[] FromHex(
string s
)
[VB]
Public Shared Function FromHex (
s As String
) As Byte()
Parameters
- s String
- Hex-encoded string
Return Value
Byte
Binary data in byte array, or an empty array on error.
Remarks
Whitespace and ASCII punctuation characters are ignored,
but other non-hex characters will cause an error.
See Also
VB6/C equivalent: CNV_BytesFromHexStr
[Contents] [Index]