EncodeStream
Defined in: packages/format-core/src/encode-stream.ts:15
Values in, encoded chunks out — the write-side counterpart of DecodeStream.
An Encoder may return several chunks for one value so a
length-prefixed format can emit [header, payload] without copying; each is
enqueued separately, leaving any coalescing to the sink that eventually
writes them.
flush() does not call the encoder’s reset(): reset exists for a protocol
mode switch mid-stream, not for end of input.
Extends
Section titled “Extends”TransformStream<Out,View>
Type Parameters
Section titled “Type Parameters”Out
View = Uint8Array
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new EncodeStream<
Out,View>(encoder):EncodeStream<Out,View>
Defined in: packages/format-core/src/encode-stream.ts:19
Parameters
Section titled “Parameters”encoder
Section titled “encoder”Encoder<Out, View>
Returns
Section titled “Returns”EncodeStream<Out, View>
Overrides
Section titled “Overrides”TransformStream< Out, View >.constructor
Properties
Section titled “Properties”readable
Section titled “readable”
readonlyreadable:ReadableStream<View>
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<Out>
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