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

Method concatChunks

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

Source from the content-addressed store, hash-verified

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

Callers 1

doRequestMethod · 0.95

Calls 1

setMethod · 0.65

Tested by

no test coverage detected