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

Function toArrayBuffer

packages/plugins/openapi/src/sdk/invoke.ts:590–594  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

588// views whose `.buffer` is `SharedArrayBuffer | ArrayBuffer` under strict
589// lib.dom typings.
590const toArrayBuffer = (bytes: Uint8Array): ArrayBuffer => {
591 const copy = new ArrayBuffer(bytes.byteLength);
592 new Uint8Array(copy).set(bytes);
593 return copy;
594};
595
596const formPartFromToolFile = (
597 file: ToolFileValue,

Callers 2

formPartFromToolFileFunction · 0.85
coerceFormDataRecordFunction · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected