public Cache(int cs, int bs) { numOfBlock = cs / bs; blocks = new List<CacheBlock>(numOfBlock); for (int i = 0; i < numOfBlock; i++) { CacheBlock b = new CacheBlock(i); //i is the block number of each block blocks.Add(b); } }
public Cache(int cs, int bs) { numOfBlock = cs / bs; blocks = new List <CacheBlock>(numOfBlock); for (int i = 0; i < numOfBlock; i++) { CacheBlock b = new CacheBlock(i); //i is the block number of each block blocks.Add(b); } }