(bytes: bigint)
| 159 | } |
| 160 | |
| 161 | async *#readGen(bytes: bigint): AsyncGenerator<Uint8Array> { |
| 162 | for (let i = 0n; i < bytes; i += 2n ** 16n) { |
| 163 | yield await this.#read(Math.min(Number(bytes - i), 2 ** 16), true); |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | async *#readDefinite( |
| 168 | items: number | bigint, |
no test coverage detected