Converts a hexadecimal string (optionally with angle brackets) to a byte array. Strips any surrounding angle brackets before conversion.
The hexadecimal string to convert, optionally wrapped in angle brackets.
A byte array with the decoded values.
stringToHexBytes('<FF00>') // Returns Uint8Array([255, 0])stringToHexBytes('FF00') // Also returns Uint8Array([255, 0]) Copy
stringToHexBytes('<FF00>') // Returns Uint8Array([255, 0])stringToHexBytes('FF00') // Also returns Uint8Array([255, 0])
Converts a hexadecimal string (optionally with angle brackets) to a byte array. Strips any surrounding angle brackets before conversion.