@alanscodelog/utils
    Preparing search index...

    Class RingBuffer<T>

    A simple ring buffer. Not particularly fast. Use a library if you need speed.

    Type must be specified at construction, otherwise we can't know the type of items and it will be unknown[].

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    items: T[] = ...
    size: number = 100

    Methods