Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BitArray

Hierarchy

  • BitArray

Index

Constructors

constructor

  • new BitArray(length: number, input?: number | number[] | Uint32Array): BitArray

Properties

Private Readonly _length

_length: number

Private Readonly _raw

_raw: Uint32Array

Static Private Readonly ONE_OVER_32

ONE_OVER_32: 0.03125 = 0.03125

Accessors

length

  • get length(): number

raw

  • get raw(): Uint32Array

Methods

clone

difference

equals

forEach

  • forEach(callback: (bit: boolean, i: number) => void): void
  • Parameters

    • callback: (bit: boolean, i: number) => void
        • (bit: boolean, i: number): void
        • Parameters

          • bit: boolean
          • i: number

          Returns void

    Returns void

forEach0

  • forEach0(callback: (i: number) => void): void

forEach1

  • forEach1(callback: (i: number) => void): void

get

  • get(i: number): boolean

is0

  • is0(rangeStart?: number, rangeEnd?: undefined | number): boolean

slice

  • slice(start?: number, end?: undefined | number): BitArray

toLegacy

toString

  • toString(): string

Static Private bit

  • bit(i: number): number

Static convert

  • convert(input: number[] | Uint32Array): BitArray

Generated using TypeDoc