Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MultiRingBuffer

Implements

  • Disposable

Index

Constructors

Properties

buffer: Buffer
encoding: BufferEncoding
head: number = -1
maxSize: number
readerId: number = 0
readers: Map<number, number>
streams: Map<MultiRingBufferReadableStream, number>
tail: number = -1

Methods

  • closeReader(id: number): void
  • deq(id: number, size?: number, encoding?: BufferEncoding): undefined | string
  • dispose(): void
  • empty(): boolean
  • emptyForReader(id: number): boolean
  • enq(str: string, encoding?: string): void
  • getReader(): number
  • incTails(size: number): void
  • isWrapped(from: number, to: number): boolean
  • onData(start: number): void
  • readersSize(): number
  • shouldIncPos(pos: number, end: number, size: number): boolean
  • size(): number
  • sizeForReader(id: number): number
  • sizeFrom(from: number, to: number, wrap: boolean): number
  • streamsSize(): number