(chunks: Uint8Array[], totalLength: number)
| 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 | /** |