Class BitList
- Namespace
- AsmResolver.Collections
- Assembly
- AsmResolver.dll
Represents a bit vector that can be resized dynamically.
public class BitList : IList<bool>, ICollection<bool>, IReadOnlyList<bool>, IReadOnlyCollection<bool>, IEnumerable<bool>, IEnumerable
- Inheritance
-
BitList
- Implements
- Inherited Members
Constructors
BitList()
Creates a new bit list.
public BitList()
BitList(int)
Creates a new bit list.
public BitList(int capacity)
Parameters
capacityintThe initial number of bits that the buffer should at least be able to store.
Properties
Count
public int Count { get; }
Property Value
IsReadOnly
public bool IsReadOnly { get; }
Property Value
this[int]
public bool this[int index] { get; set; }
Parameters
indexint
Property Value
Methods
Add(bool)
public void Add(bool item)
Parameters
itembool
Clear()
public void Clear()
Contains(bool)
public bool Contains(bool item)
Parameters
itembool
Returns
CopyTo(bool[], int)
public void CopyTo(bool[] array, int arrayIndex)
Parameters
EnsureCapacity(int)
Ensures the provided number of bits can be stored in the bit list.
public void EnsureCapacity(int capacity)
Parameters
capacityintThe number of bits to store in the list.
GetEnumerator()
Returns an enumerator for all bits in the bit vector.
public BitList.Enumerator GetEnumerator()
Returns
- BitList.Enumerator
The enumerator.
IndexOf(bool)
public int IndexOf(bool item)
Parameters
itembool
Returns
Insert(int, bool)
public void Insert(int index, bool item)
Parameters
Remove(bool)
public bool Remove(bool item)
Parameters
itembool
Returns
RemoveAt(int)
public void RemoveAt(int index)
Parameters
indexint