Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CalculateDeltaRowCountsForGeneration()

static void System.Reflection.Metadata.Ecma335.MetadataAggregator.CalculateDeltaRowCountsForGeneration ( RowCounts rowCounts[][],
int generation,
ref EnCMapTableReader encMapTable )
inlinestaticpackage

Definition at line 157 of file MetadataAggregator.cs.

158 {
159 foreach (RowCounts[] array in rowCounts)
160 {
161 array[generation].AggregateInserts = array[generation - 1].AggregateInserts;
162 }
163 int numberOfRows = encMapTable.NumberOfRows;
164 for (int j = 1; j <= numberOfRows; j++)
165 {
166 uint token = encMapTable.GetToken(j);
167 int num = (int)(token & 0xFFFFFF);
168 RowCounts[] array2 = rowCounts[token >> 24];
169 if (num > array2[generation].AggregateInserts)
170 {
171 if (num != array2[generation].AggregateInserts + 1)
172 {
173 throw new BadImageFormatException(System.SR.EnCMapNotSorted);
174 }
175 array2[generation].AggregateInserts = num;
176 }
177 else
178 {
179 array2[generation].Updates++;
180 }
181 }
182 }
static string EnCMapNotSorted
Definition SR.cs:118
Definition SR.cs:7

References System.array, and System.SR.EnCMapNotSorted.

Referenced by System.Reflection.Metadata.Ecma335.MetadataAggregator.CalculateRowCounts().