Class TransformStream
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The TransformStream interface of the Streams API represents a concrete implementation of the pipe chain transform stream concept.
[Value("TransformStream")]
public class TransformStream
- Inheritance
-
TransformStream
- Inherited Members
Remarks
It may be passed to the PipeThrough(ReadableWritablePair, StreamPipeOptions) method in order to transform a stream of data from one format into another.
For example, it might be used to decode (or encode) video frames, decompress data, or convert the stream from XML to JSON.
A transformation algorithm may be provided as an optional argument to the object constructor.
If not supplied, data is not modified when piped through the stream.
TransformStream is a transferable object.
Constructors
TransformStream()
public TransformStream()
TransformStream(Object, QueuingStrategy, QueuingStrategy)
The TransformStream() constructor creates a new TransformStream object which represents a pair of streams: a WritableStream representing the writable side, and a ReadableStream representing the readable side.
public TransformStream(Object transformer = null, QueuingStrategy writableStrategy = null, QueuingStrategy readableStrategy = null)
Parameters
transformerObjectwritableStrategyQueuingStrategyreadableStrategyQueuingStrategy
Remarks
Properties
Readable
The readable read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
[Value("readable")]
public ReadableStream Readable { get; }
Property Value
Remarks
Writable
The writable read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
[Value("writable")]
public WritableStream Writable { get; }