MCPcopy Create free account
hub / github.com/denoland/std / #readGen

Method #readGen

cbor/sequence_decoder_stream.ts:161–165  ·  view source on GitHub ↗
(bytes: bigint)

Source from the content-addressed store, hash-verified

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,

Callers 2

#decodeTwoMethod · 0.95
#decodeThreeMethod · 0.95

Calls 2

#readMethod · 0.95
minMethod · 0.80

Tested by

no test coverage detected