(offset, length)
| 2614 | } |
| 2615 | |
| 2616 | async readUint8Array(offset, length) { |
| 2617 | const reader = this; |
| 2618 | const offsetEnd = offset + length; |
| 2619 | const blob = offset || offsetEnd < reader.size ? reader.blob.slice(offset, offsetEnd) : reader.blob; |
| 2620 | let arrayBuffer = await blob.arrayBuffer(); |
| 2621 | if (arrayBuffer.byteLength > length) { |
| 2622 | arrayBuffer = arrayBuffer.slice(offset, offsetEnd); |
| 2623 | } |
| 2624 | return new Uint8Array(arrayBuffer); |
| 2625 | } |
| 2626 | } |
| 2627 | |
| 2628 | class BlobWriter extends Stream { |
nothing calls this directly
no test coverage detected