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

Class CircularBuffer<T>

Circular buffer

-

Type Parameters

  • T

Constructors

constructor +CircularBuffer | poolifier - v4.0.12

Class CircularBufferInternal

Circular buffer designed for positive numbers.

+

Constructors

Properties

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

Methods

\ No newline at end of file +

Constructors

Properties

items: Float32Array
maxArrayIdx: number
readIdx: number
size: number
writeIdx: 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