internal CacheMultiple(CacheCommon cacheCommon, int numSingleCaches) : base(cacheCommon)
 {
     this._cacheIndexMask = numSingleCaches - 1;
     this._caches = new CacheSingle[numSingleCaches];
     for (int i = 0; i < numSingleCaches; i++)
     {
         this._caches[i] = new CacheSingle(cacheCommon, this, i);
     }
 }
Beispiel #2
0
 internal CacheMultiple(CacheCommon cacheCommon, int numSingleCaches) : base(cacheCommon) {
     Debug.Assert(numSingleCaches > 1, "numSingleCaches is not greater than 1");
     Debug.Assert((numSingleCaches & (numSingleCaches - 1)) == 0, "numSingleCaches is not a power of 2");
     _cacheIndexMask = numSingleCaches - 1;
     _caches = new CacheSingle[numSingleCaches];
     for (int i = 0; i < numSingleCaches; i++) {
         _caches[i] = new CacheSingle(cacheCommon, this, i);
     }
 }