MCPcopy Create free account
hub / github.com/angular/angular / concatChunks

Method concatChunks

packages/common/http/src/fetch.ts:463–472  ·  view source on GitHub ↗
(chunks: Uint8Array[], totalLength: number)

Source from the content-addressed store, hash-verified

461 }
462
463 private concatChunks(chunks: Uint8Array[], totalLength: number): Uint8Array<ArrayBuffer> {
464 const chunksAll = new Uint8Array(totalLength);
465 let position = 0;
466 for (const chunk of chunks) {
467 chunksAll.set(chunk, position);
468 position += chunk.length;
469 }
470
471 return chunksAll;
472 }
473}
474
475/**

Callers 1

doRequestMethod · 0.95

Calls 1

setMethod · 0.65

Tested by

no test coverage detected