MCPcopy
hub / github.com/di-sukharev/opencommit / clonePart

Function clonePart

out/cli.cjs:9011–9020  ·  view source on GitHub ↗
(part)

Source from the content-addressed store, hash-verified

9009
9010// node_modules/formdata-node/lib/esm/blobHelpers.js
9011async function* clonePart(part) {
9012 const end = part.byteOffset + part.byteLength;
9013 let position = part.byteOffset;
9014 while (position !== end) {
9015 const size = Math.min(end - position, CHUNK_SIZE);
9016 const chunk = part.buffer.slice(position, position + size);
9017 position += chunk.byteLength;
9018 yield new Uint8Array(chunk);
9019 }
9020}
9021async function* consumeNodeBlob(blob) {
9022 let position = 0;
9023 while (position !== blob.size) {

Callers 1

consumeBlobPartsFunction · 0.85

Calls 2

minMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…