using System; namespace hwo.bitworks { public class BitBuffer : MultipleBitsSource { bool[] bits; string name; public BitBuffer(int len) { this.bits = new bool[len]; this.name = SourceName; } public BitBuffer(int len,string name) { this.bits = new bool[len]; this.name = name; } public override int getBits() { return bits.Length; } public void zero(){ for (int n=0;n