src/AnvilPacker/Util/Collections/BitSet.cs
/// <summary> Sets the bit at the specified position to true, and returns whether it was previously clear. </summary>
Sets the bit at the specified position to true, and returns whether it was previously clear.
Sets the bit at the specified position to true and returns whether it was previously clear .
public bool Add(int index)
        {
            EnsureCapacity(index);
            ulong mask = 1ul << index;
            ref ulong w = ref GetWord(index);
            bool wasClear = (w & mask) == 0;
            w |= mask;
            return wasClear;
        }
public bool Add ( int index ) { EnsureCapacity ( index ) ; ulong mask = 1ul << index ; ref ulong w = ref GetWord ( index ) ; bool wasClear = ( w & mask ) == 0 ; w |= mask ; return wasClear ; }
Sets the bit at the specified position to true, and returns whether it was previously clear.
Sets the bit at the specified position to true and returns whether it was previously clear .
index
int