set
Sets the bit at the specified index to true.
Since
1.0
Parameters
a bit index
Throws
if the specified index is negative
Sets the bit at the specified index to the specified value.
Since
1.4
Parameters
a bit index
a boolean value to set
Throws
if the specified index is negative
Sets the bits from the specified fromIndex (inclusive) to the specified toIndex (exclusive) to true.
Since
1.4
Parameters
index of the first bit to be set
index after the last bit to be set
Throws
if fromIndex is negative, or toIndex is negative, or fromIndex is larger than toIndex
Sets the bits from the specified fromIndex (inclusive) to the specified toIndex (exclusive) to the specified value.
Since
1.4
Parameters
index of the first bit to be set
index after the last bit to be set
value to set the selected bits to
Throws
if fromIndex is negative, or toIndex is negative, or fromIndex is larger than toIndex