public BlockConsumerContainer(int blockCount, int blockSize) { availableBlockConsumers = new Dictionary<string, IBlockConsumer>(); items = new List<IBlockConsumer>(); blockSource = new ByteStreamToBlock(blockSize); circb = new CircularBuffer<byte[]>((int)Math.Log(blockCount, 2)); b = new RefillBuffer<byte[]>(circb, blockSource); }