Convert a hex string to bytes.
Whitespace tolerance. ASCII whitespace is stripped before decoding so users can paste annotated hex dumps directly.
Validation. After whitespace stripping, the input must have even length and contain only [0-9a-fA-F]; anything else throws CborError with code Custom.
[0-9a-fA-F]
CborError
Custom
Custom - invalid hex string.
Convert a hex string to bytes.
Whitespace tolerance. ASCII whitespace is stripped before decoding so users can paste annotated hex dumps directly.
Validation. After whitespace stripping, the input must have even length and contain only
[0-9a-fA-F]; anything else throwsCborErrorwith codeCustom.