Create a Bitfield.
Can be a Node.js Buffer, ArrayBuffer, typed array, numeric array, or a number representing the amount of bytes in the Bitfield
Other options
Underlying typed array. Changing this manually may break the Bitfield or cause unexpected bugs.
Value of the grow option.
Reset all bits.
Check if a bit is set.
Bit index
True if the bit is set
Set a bit.
Bit index
Bit value
Convert Bitfield into a BigInt.
Node.js BigInt
Convert Bitfield into a Buffer.
Node.js Buffer
Convert Bitfield into a hexadecimal string.
Hexadecimal string
Convert Bitfield into a UTF-8 encoded string.
UTF-8 encoded string
Create a Bitfield from a BigInt.
BigInt
Bitfield options
Bitfield
Create a Bitfield from a Buffer or ArrayBuffer.
Buffer
Bitfield options
Bitfield
Create a Bitfield from a hexadecimal string.
Hexadecimal string
Bitfield options
Bitfield
Create a Bitfield from a UTF-8 encoded string.
UTF-8 encoded string.
Bitfield options
Bitfield
Generated using TypeDoc
Represents a Bitfield.