MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / buildBatch

Function buildBatch

packages/node/src/backend/nodeBackendInline.ts:386–399  ·  view source on GitHub ↗
(buf: ArrayBuffer, byteLen: number, dropped: number)

Source from the content-addressed store, hash-verified

384 }
385
386 function buildBatch(buf: ArrayBuffer, byteLen: number, dropped: number): BackendEventBatch {
387 const bytes = new Uint8Array(buf, 0, byteLen);
388 let released = false;
389 return {
390 bytes,
391 droppedBatches: dropped,
392 release: () => {
393 if (released) return;
394 released = true;
395 if (!started || disposed) return;
396 eventPool.push(buf);
397 },
398 };
399 }
400
401 function emitInitialResizeIfPossible(): void {
402 if (!started || discardBuffer === null) return;

Callers 3

runPollOnceFunction · 0.85
pollEventsFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected