public class BitBufferBools { /// /// The boolean array. /// private readonly bool[] bools; /// /// Initializes a new instance of the class. /// /// The length of the buffer. public BitBufferBools(int length) { this.bools = new bool[length]; } /// /// Sets the value at the index. /// /// The index. /// The value. public void Set(int index, bool value) { this.bools[index] = value; } /// /// Gets the value at the index. /// /// The index. /// The value. public bool Get(int index) { return this.bools[index]; } }