* Constructs a new instance.
()
| 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>, |
nothing calls this directly
no test coverage detected