- Preparing search index...
- The search index is not available
biorate
Properties
Private
#value
#value: number = 0
Static
Private
Readonly
#maxIndex
#maxIndex: 30 = 30
Methods
Private
#checkIndex
- #checkIndex(index): void
-
Returns void
Private
#get
- #get(index): 0 | 1
-
Returns 0 | 1
bits
- bits(value): any[]
-
Returns any[]
clear
- clear(): void
-
Returns void
define
- define(value): void
-
Returns void
get
- get(index): 0 | 1
-
Returns 0 | 1
remove
- remove(index): void
-
Returns void
set
- set(index, offset?): void
-
Parameters
-
index: number
-
offset: number = 0
Returns void
toBinary
- toBinary(): string
-
Returns string
toInt
- toInt(): number
-
Returns number
value
- value(...bits): number
-
Parameters
-
Rest
...bits: number[]
Rest
Returns number
valueOf
- valueOf(): number
-
Returns number
Static
bits
- bits(value): any[]
-
Returns any[]
Description
Bit array class
The BitArray class is for setting and extracting bits from a number. It can be used, for example, for compact storage array of boolean values.
Features:
Example