DecodeStream
Defined in: packages/format-core/src/decode-stream.ts:43
Chunks in, decoded values out — a Decoder driven by a
DecodeDriver and exposed as a TransformStream, for any incremental,
non-live source (a Node Readable, a Web ReadableStream, a file being read
in chunks).
Unlike net-core’s FrameLink, there is no transport to pause: backpressure
comes from the Web Streams queue itself. A decoder that returns pending is
supported — a TransformStreamDefaultController stays valid after
transform() returns, so enqueueing from the setTimeout callback below is
legal — and on flush(), DecodeDriver.close() resolves any outstanding
pending immediately rather than waiting out the full silence window.
Extends
Section titled “Extends”TransformStream<Chunk,T>
Type Parameters
Section titled “Type Parameters”T
View = Uint8Array
Chunk = View
W = never
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DecodeStream<
T,View,Chunk,W>(decoder,options):DecodeStream<T,View,Chunk,W>
Defined in: packages/format-core/src/decode-stream.ts:49
Parameters
Section titled “Parameters”decoder
Section titled “decoder”Decoder<T, View, W>
options
Section titled “options”DecodeStreamOptions<T, View, Chunk, W>
Returns
Section titled “Returns”DecodeStream<T, View, Chunk, W>
Overrides
Section titled “Overrides”TransformStream<Chunk, T>.constructor
Properties
Section titled “Properties”readable
Section titled “readable”
readonlyreadable:ReadableStream<T>
Defined in: node_modules/.store/@types-web-npm-0.0.361-9908d15a9c/package/index.d.ts:37861
The readable read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream. This stream emits the transformed output data.
Inherited from
Section titled “Inherited from”TransformStream.readable
writable
Section titled “writable”
readonlywritable:WritableStream<Chunk>
Defined in: node_modules/.store/@types-web-npm-0.0.361-9908d15a9c/package/index.d.ts:37867
The writable read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream. This stream accepts input data that will be transformed and emitted to the readable stream.
Inherited from
Section titled “Inherited from”TransformStream.writable