Class CircularBufferInternal

Circular buffer designed for positive numbers.

Constructors

Properties

Methods

Constructors

Properties

size: number

Methods

  • Checks whether the buffer is empty.

    Returns boolean

    Whether the buffer is empty.

  • Checks whether the buffer is full.

    Returns boolean

    Whether the buffer is full.

  • Gets number from buffer.

    Returns undefined | number

    Number from buffer.

  • Puts number into buffer.

    Parameters

    • number: number

      Number to put into buffer.

    Returns void