Constructors
constructor
- new BitSequence(length?, data?): $.BitSequence
Parameters
Optional
length: numberOptional
data: Uint8Array
Properties
Readonly
data
data: Uint8Array
Readonly
length
length: number
Accessors
byteLength
- get byteLength(): number
Returns number
Methods
_getBit
- _getBit(index): undefined | boolean
Returns undefined | boolean
_hasBit
- _hasBit(index): boolean
Returns boolean
_setBit
- _setBit(index, bit): boolean
Parameters
- index: number
- bit: boolean | 0 | 1
Returns boolean
Static
from
- from(array): $.BitSequence
Parameters
- array: (boolean | 0 | 1)[]