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