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

Method constructor

cbor/sequence_encoder_stream.ts:97–106  ·  view source on GitHub ↗

* Constructs a new instance.

()

Source from the content-addressed store, hash-verified

95 * Constructs a new instance.
96 */
97 constructor() {
98 const { readable, writable } = new TransformStream<
99 CborStreamInput,
100 CborStreamInput
101 >();
102 this.#readable = toByteStream(
103 ReadableStream.from(this.#encodeFromReadable(readable)),
104 );
105 this.#writable = writable;
106 }
107
108 async *#encodeFromReadable(
109 readable: ReadableStream<CborStreamInput>,

Callers

nothing calls this directly

Calls 3

#encodeFromReadableMethod · 0.95
toByteStreamFunction · 0.85
fromMethod · 0.45

Tested by

no test coverage detected