Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MultiRingBufferReadableStream

The MultiRingBuffer is a ring buffer implementation that allows multiple independent readers.

These readers are created using the getReader or getStream functions to create a reader that can be read using deq() or one that is a readable stream.

Hierarchy

  • Readable
    • MultiRingBufferReadableStream

Implements

  • Disposable

Index

Constructors

Properties

disposed: boolean = false
encoding: BufferEncoding = 'utf8'
more: boolean = false
reader: number
ringBuffer: MultiRingBuffer

Methods

  • _destroy(err: null | Error, callback: ((err: null | Error) => void)): void
  • _read(size: number): void
  • deq(size: number): void
  • dispose(): void
  • onData(): void