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

◆ NormalizedMinimumCapacity()

int System.Data.RecordManager.NormalizedMinimumCapacity ( int capacity)
inlineprivate

Definition at line 101 of file RecordManager.cs.

102 {
103 if (capacity < 1014)
104 {
105 if (capacity < 246)
106 {
107 if (capacity < 54)
108 {
109 return 64;
110 }
111 return 256;
112 }
113 return 1024;
114 }
115 return (capacity + 10 >> 10) + 1 << 10;
116 }

References System.capacity.

Referenced by System.Data.RecordManager.GrowRecordCapacity().