Blend2D
2D Vector Graphics Engine
Destroys the BitArray.
Tests whether the BitArray has a content.
empty()
. Move assignment.
other
BitArray is reset by move assignment, so its state after the move operation is the same as a default constructed BitArray. Copy assignment, performs weak copy of the data held by the other
BitArray.
Clears the content of the BitArray and releases its data.
After reset the BitArray content matches a default constructed instance.
Swaps the content of this string with the other
string.
Tests whether the BitArray is empty (has no content).
Returns true
if the BitArray's size is zero.
Returns the size of the BitArray in bits.
Returns number of BitWords this BitArray uses.
Returns the capacity of the BitArray in bits.
Returns the number of bits set in the BitArray.
Returns the number of bits set in the given [startBit, endBit)
range.
Returns bit data.
Returns a bit-value at the given bitIndex
.
Returns whether the bit-set has at least on bit in the given [startBit, endbit)
range.
Returns whether this BitArray subsumes other
.
Returns whether this BitArray intersects with other
.
Returns whether this BitArray and other
are bitwise equal.
Compares this BitArray with other
and returns either -1
, 0
, or 1
.
Move assignment, the same as operator=
, but returns a BLResult
instead of this
.
Copy assignment, the same as operator=
, but returns a BLResult
instead of this
.
Replaces the content of the BitArray by bits specified by wordData
of size wordCount
[the size is in uint32_t units].
Clears the content of the BitArray without releasing its dynamically allocated data, if possible.
Resizes the BitArray so its size matches nBits
.
Reserves nBits
in the BitArray (capacity would match nBits
) without changing its size.
Shrinks the capacity of the BitArray to match the actual content with the intention to save memory.
Fills bits in [startBit, endBit)
range to true.
Fills bits starting from bitIndex
specified by wordData
and wordCount
to true (zeros in wordData are ignored).
OR
operator - bits in wordData
are combined with OR operator with existing bits in BitArray. Sets a bit to false at the given bitIndex
.
Sets bits in [startBit, endBit)
range to false.
Sets bits starting from bitIndex
specified by wordValue
to false (zeros in wordValue are ignored).
AND_NOT
operator - bits in wordData
are negated and then combined with AND operator with existing bits in BitArray. Sets bits starting from bitIndex
specified by wordData
and wordCount
to false (zeros in wordData are ignored).
AND_NOT
operator - bits in wordData
are negated and then combined with AND operator with existing bits in BitArray. Makes the BitArray mutable with the intention to replace all bits of it.
Replaces a bit in the BitArray at the given bitIndex
to match bitValue
.
Replaces bits starting from bitIndex
to match the bits specified by wordValue
.
wordValue
is copied as is, thus replaces fully the existing bits. Replaces bits starting from bitIndex
to match the bits specified by wordData
and wordCount
.
wordData
is copied as is, thus replaces fully the existing bits.