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

Method concatChunks

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

Source from the content-addressed store, hash-verified

426 }
427
428 private concatChunks(chunks: Uint8Array[], totalLength: number): Uint8Array<ArrayBuffer> {
429 const chunksAll = new Uint8Array(totalLength);
430 let position = 0;
431 for (const chunk of chunks) {
432 chunksAll.set(chunk, position);
433 position += chunk.length;
434 }
435
436 return chunksAll;
437 }
438}
439
440/**

Callers 1

doRequestMethod · 0.95

Calls 1

setMethod · 0.65

Tested by

no test coverage detected