Class BitField<S, N>Abstract

Data structure that makes it easy to interact with a bitfield.

Type Parameters

  • S extends string
  • N extends bigint | number

Hierarchy (view full)

Constructors

Properties

bitField: N

Bitfield of the packed bits

constructor: BitFieldConstructor<S, N>
DefaultBit: number | bigint = 0
Flags: EnumLike<unknown, number | bigint> = {}

Numeric bitfield flags. Defined in extension classes

Methods

  • Gets an object mapping field names to a boolean indicating whether the bit is available.

    Returns Record<S, boolean>