toHashT

Converts from a hex string to a hash_t.

bool
toHashT
(,
out hash_t hash
,
bool allow_radix = false
)

Parameters

str cstring

string to convert

hash hash_t

output value to receive hex value, only set if conversion succeeds

allow_radix bool

if true, the radix specified "0x" is allowed at the start of str

Return Value

Type: bool

true if the conversion succeeded

Meta