MCPcopy
hub / github.com/conversejs/converse.js / hexToArrayBuffer

Function hexToArrayBuffer

src/headless/utils/arraybuffer.js:37–40  ·  view source on GitHub ↗
(hex)

Source from the content-addressed store, hash-verified

35}
36
37export function hexToArrayBuffer (hex) {
38 const typedArray = new Uint8Array(hex.match(/[\da-f]{2}/gi).map(h => parseInt(h, 16)))
39 return typedArray.buffer
40}

Callers 1

decryptFileFunction · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected