Interface BinaryBufferReadableBufferedStream

A stream that has a buffer already read. Returns the original stream that was read as well as the chunks that got read.

The ended flag indicates if the stream has been fully consumed.

interface BinaryBufferReadableBufferedStream {
    buffer: BinaryBuffer[];
    ended: boolean;
    stream: ReadableStream<BinaryBuffer>;
}

Hierarchy (view full)

Properties

Properties

buffer: BinaryBuffer[]

An array of chunks already read from this stream.

ended: boolean

Signals if the stream has ended or not. If not, consumers should continue to read from the stream until consumed.

The original stream that is being read.