fromHexString
fn
ubyte[] fromHexString(String)(String hex) if (isSomeString!String) @safe pureConverts a hex text string to a range of bytes.
Parameters
hex | String representation of a hexdecimal-encoded byte array. |
Returns
An newly allocated array of bytes.
Throws
Exception on invalid input.
Example:
ubyte[] dby = "0xBA".fromHexString;See Also
fromHexString for a range version of the function.