Struct HierarchicalBitset

Public

Thread-safe hierarchical bitset.

Stores an array of bits. Each bit can be set or cleared individually from any thread.

Note

Setting the capacity is not thread-safe, nor is iterating over the bitset while it is being modified.

Inner Types

Public Methods

Clear ()

Clear all bits.

Public
Count ()

Number of set bits in the bitset.

Public
Dispose ()
Public
Get (index)

Get the value of a bit.

Public
GetIndices (result)
Public
GetIterator (scratchBuffer)

Get an iterator over all set bits.

Public
HierarchicalBitset (size, allocator)
Public
Reset (index)

Set a given bit to 0.

Public
Set (index)

Set a given bit to 1.

Public

Public Static Methods

ResetAtomic (span, index)
Public Static
SetAtomic (span, index)
Public Static

Public Variables

Capacity
Public
IsCreated
Public
IsEmpty

True if the bitset is empty.

Public
allocator
Public
l1
Public
l2
Public
l3
Public

Public Static Variables

Log64
Public Static