Table of Contents

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

capacity int

The initial number of bits that the buffer should at least be able to store.

Properties

Count

public int Count { get; }

Property Value

int

IsReadOnly

public bool IsReadOnly { get; }

Property Value

bool

this[int]

public bool this[int index] { get; set; }

Parameters

index int

Property Value

bool

Methods

Add(bool)

public void Add(bool item)

Parameters

item bool

Clear()

public void Clear()

Contains(bool)

public bool Contains(bool item)

Parameters

item bool

Returns

bool

CopyTo(bool[], int)

public void CopyTo(bool[] array, int arrayIndex)

Parameters

array bool[]
arrayIndex int

EnsureCapacity(int)

Ensures the provided number of bits can be stored in the bit list.

public void EnsureCapacity(int capacity)

Parameters

capacity int

The 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

item bool

Returns

int

Insert(int, bool)

public void Insert(int index, bool item)

Parameters

index int
item bool

Remove(bool)

public bool Remove(bool item)

Parameters

item bool

Returns

bool

RemoveAt(int)

public void RemoveAt(int index)

Parameters

index int