MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / base64ToArrayBuffer

Function base64ToArrayBuffer

apps/cloud/executor.config.ts:83–86  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

81}
82
83const base64ToArrayBuffer = (value: string): ArrayBuffer => {
84 const bytes = Uint8Array.from(atob(value), (char) => char.charCodeAt(0));
85 return bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength);
86};
87
88const assetRequest = (path: string): Request => new Request(new URL(path, "https://assets.local"));
89

Callers 1

executor.config.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected