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

Properties

buffer

buffer: T[]

An array of chunks already read from this stream.

ended

ended: boolean

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

stream

stream: ReadableStream<T>

The original stream that is being read.