function decodeHex
decodeHex(src: string): Uint8ArrayDecodes the given hex-encoded string. If the input is malformed, an error is thrown.
Examples
Example 1
Example 1
import { decodeHex } from "@std/encoding/hex"; decodeHex("616263"); // Uint8Array(3) [ 97, 98, 99 ]
Parameters
src: string