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

Method #encodeFromReadable

cbor/sequence_encoder_stream.ts:108–116  ·  view source on GitHub ↗
(
    readable: ReadableStream<CborStreamInput>,
  )

Source from the content-addressed store, hash-verified

106 }
107
108 async *#encodeFromReadable(
109 readable: ReadableStream<CborStreamInput>,
110 ): AsyncGenerator<Uint8Array> {
111 for await (const x of readable) {
112 for await (const y of this.#encode(x)) {
113 yield y;
114 }
115 }
116 }
117
118 async *#encode(
119 x: CborStreamInput,

Callers 1

constructorMethod · 0.95

Calls 1

#encodeMethod · 0.95

Tested by

no test coverage detected