Like TryParseHex, but returns an empty vector on invalid input.
Declared in <util/strencodings.h>
template<typename Byte = uint8_t>
std::vector<Byte>
ParseHex(std::string_view hex_str);
The decoded bytes, or an empty vector if the input is not valid hex.
| Name | Description |
|---|---|
| hex_str | The hex string to parse. |