fromHexStringAsRange

fnauto fromHexStringAsRange(String)(String hex) if (isSomeString!String) @safe pure nothrow @nogc

Converts a hex text string to a range of bytes.

The input to this function MUST be valid.

isHexString can be used to check for this if needed.

Parameters

hexString representation of a hexdecimal-encoded byte array.

Returns

A forward range of bytes.