MCPcopy Index your code
hub / github.com/simstudioai/sim / drainPending

Function drainPending

apps/sim/lib/uploads/core/storage-service.ts:282–282  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

280
281 /** Merge the accumulated chunks into one ArrayBuffer-backed buffer (which `uploadFile` expects). */
282 const drainPending = (): Buffer<ArrayBuffer> => Buffer.concat(pendingChunks, pendingBytes)
283
284 const ensureBackend = async (): Promise<MultipartBackend> => {
285 if (!backend) {

Callers 2

writeFunction · 0.85
completeFunction · 0.85

Calls 1

concatMethod · 0.80

Tested by

no test coverage detected