API

Class BitArray

An fixed size array that effectively stores boolean values where each value is a single bit of backing data.

All bits are initialized to false.

Index
size: number

The number of bits to store.

  • Gets the current value at the specified index.

    Parameters

    • bitIndex: number

      The index to get the value from.

    Returns boolean

    The value at the specified index.

  • Sets the value at the specified index.

    Parameters

    • bitIndex: number

      The index to set the value at.

    • value: boolean

      The value to set.

    Returns void