MCPcopy Create free account
hub / github.com/denoland/std / constructor

Method constructor

cbor/sequence_decoder_stream.ts:128–138  ·  view source on GitHub ↗

* Constructs a new instance.

()

Source from the content-addressed store, hash-verified

126 * Constructs a new instance.
127 */
128 constructor() {
129 const { readable, writable } = new TransformStream<
130 Uint8Array,
131 Uint8Array
132 >();
133 this.#source = toByteStream(readable).getReader({ mode: "byob" });
134 this.#readable = ReadableStream.from<CborStreamOutput>(
135 this.#decodeSequence(),
136 );
137 this.#writable = writable;
138 }
139
140 async #read(bytes: number, expectMore: true): Promise<Uint8Array>;
141 async #read(

Callers

nothing calls this directly

Calls 3

#decodeSequenceMethod · 0.95
toByteStreamFunction · 0.85
fromMethod · 0.45

Tested by

no test coverage detected