Converts a byte array containing hexadecimal ASCII characters to raw bytes. Each pair of hex character bytes is converted to a single byte value.
The byte array containing hex character codes.
A byte array with decoded values.
// 'FF' as bytes (0x46, 0x46) becomes 0xFFhexBytesToBytes(new Uint8Array([70, 70])) // Returns Uint8Array([255]) Copy
// 'FF' as bytes (0x46, 0x46) becomes 0xFFhexBytesToBytes(new Uint8Array([70, 70])) // Returns Uint8Array([255])
Converts a byte array containing hexadecimal ASCII characters to raw bytes. Each pair of hex character bytes is converted to a single byte value.