Class CborMapDecodedStream
Hierarchy
- ReadableStream<CborMapStreamOutput>
- CborMapDecodedStream
Index
Constructors
constructor
- new
Cbor (gen, releaseLock): CborMapDecodedStreamMap Decoded Stream Constructs a new instance.
Parameters
- gen: AsyncGenerator<CborMapStreamOutput, any, any>
A AsyncGenerator
. - releaseLock: ReleaseLock
A Function that's called when the stream is finished.
Returns CborMapDecodedStream
- gen: AsyncGenerator<CborMapStreamOutput, any, any>
Methods
cancel
getReader
- get
Reader (options): ReadableStreamBYOBReader Parameters
- options: {
mode: "byob";
}mode: "byob"
Returns ReadableStreamBYOBReader
- options: {
- get
Reader (): ReadableStreamDefaultReader<CborMapStreamOutput> Returns ReadableStreamDefaultReader<CborMapStreamOutput>
- get
Reader (options?): ReadableStreamReader<CborMapStreamOutput> Parameters
Optionaloptions: ReadableStreamGetReaderOptions
Returns ReadableStreamReader<CborMapStreamOutput>
pipeThrough
- pipe
Through <T>(transform, options?): ReadableStream<T> Type Parameters
Parameters
- transform: ReadableWritablePair<T, CborMapStreamOutput>
Optionaloptions: StreamPipeOptions
Returns ReadableStream<T>
pipeTo
- pipe
To (destination, options?): Promise<void> Parameters
- destination: WritableStream<CborMapStreamOutput>
Optionaloptions: StreamPipeOptions
Returns Promise<void>
tee
- tee(): [ReadableStream<CborMapStreamOutput>, ReadableStream<CborMapStreamOutput>]
Returns [ReadableStream<CborMapStreamOutput>, ReadableStream<CborMapStreamOutput>]
A ReadableStream that wraps the decoded CBOR "Map". RFC 8949 - Concise Binary Object Representation (CBOR)
Instances of this class is created from CborSequenceDecoderStream. This class is not designed for you to create instances of it yourself. It is merely a way for you to validate the type being returned.
Example: Usage