Class KeyIncrementer<T>

A key sequence manager that simply increments a counter each time a key is requested.

Type Parameters

  • T = u8

    The type of the counter, defaults to u8.

Hierarchy

  • KeyIncrementer

Implements

Constructors

Properties

Methods

Constructors

Properties

counter: T = 0

Methods

  • Generates the next key in the sequence.

    Remarks

    The Args class is used to serialize the counter into a key. Ideally, this serialization should be done outside of the Args object as we are allocating an object simply to get a proper serialization of the counter.

    Returns

    A unique storage key.

    Returns StaticArray<number>

Generated using TypeDoc