X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FCircularBuffer.html;h=578f6b8f275faa3f6aa5e7155b88e606c8abbce6;hb=0aa00166eaa9a8c9b505b4fa7fd5dc50d831b7ef;hp=5cda4cf53ca93a5e933ea08502eea641cbb87d01;hpb=2493c34370d0839614058bb55254fd7aec91b664;p=poolifier.git diff --git a/docs/classes/CircularBuffer.html b/docs/classes/CircularBuffer.html index 5cda4cf5..578f6b8f 100644 --- a/docs/classes/CircularBuffer.html +++ b/docs/classes/CircularBuffer.html @@ -1,16 +1,24 @@ -CircularBuffer | poolifier - v4.0.11

Class CircularBuffer<T>

Circular buffer

-

Type Parameters

  • T

Constructors

Properties

Methods

checkSize +CircularBuffer | poolifier - v4.0.15

Class CircularBufferInternal

Circular buffer designed for positive numbers.

+

Constructors

Properties

Methods

Constructors

Properties

items: (undefined | T)[]
maxArrayIdx: number
readIdx: number
writeIdx: number

Methods

\ No newline at end of file +

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

\ No newline at end of file