Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReadableBufferedStream<T>

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.

Type Parameters

  • T

Hierarchy

Index

Properties

buffer: T[]

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.

stream: ReadableStream<T>

The original stream that is being read.