/// <summary> /// Creates the chunk sections for this column ased on the primary and add itmasks. /// </summary> void CreateSections() { for (var i = 0; i < 16; i++) { if ((Pitmap & (1 << i)) == 0) continue; Numlocks++; Sections[i] = new Section((byte)i); } for (var i = 0; i < 16; i++) { if ((Aitmap & (1 << i)) != 0) Alocks++; } // -- Numer of sections * locks per section = locks in this "Chunk" Numlocks = Numlocks * 4096; }
/// <summary> /// Creates the chunk sections for this column based on the primary and add bitmasks. /// </summary> void CreateSections() { for (int i = 0; i < 16; i++) { if ((pbitmap & (1 << i)) != 0) { numBlocks++; sections[i] = new Section((byte)i); } } for (int i = 0; i < 16; i++) { if ((abitmap & (1 << i)) != 0) { aBlocks++; } } // -- Number of sections * Blocks per section = Blocks in this "Chunk" numBlocks = numBlocks * 4096; }