MCPcopy Create free account
hub / github.com/denoland/std / decodeHex

Function decodeHex

encoding/hex.ts:89–94  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

87 * ```
88 */
89export function decodeHex(src: string): Uint8Array_ {
90 const output = new TextEncoder().encode(src) as Uint8Array_;
91 // deno-lint-ignore no-explicit-any
92 return new Uint8Array((output.buffer as any)
93 .transfer(decode(output, 0, 0, rAlphabet)));
94}

Callers 3

hex_test.tsFile · 0.90
verifySignedCookieFunction · 0.90

Calls 1

decodeFunction · 0.90

Tested by

no test coverage detected