[#TryParseHex] = TryParseHex :mrdocs: Parse the hex string into bytes (uint8_t or std::byte). Ignores whitespace. Returns nullopt on invalid input. == Synopsis Declared in `<util/strencodings.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Byte = std::byte> std::optional<std::vector<Byte>> TryParseHex(std::string_view str); ---- == Return Value The decoded bytes, or std::nullopt if the input is not valid hex. == Parameters [cols="1,4"] |=== | Name| Description | *str* | The hex string to parse. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#