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

◆ ConstructFrom()

void System.Collections.Generic.HashSet< T >.ConstructFrom ( HashSet< T > source)
inlineprivate

Definition at line 195 of file HashSet.cs.

196 {
197 if (source.Count == 0)
198 {
199 return;
200 }
201 int num = source._buckets.Length;
202 int num2 = HashHelpers.ExpandPrime(source.Count + 1);
203 if (num2 >= num)
204 {
205 _buckets = (int[])source._buckets.Clone();
206 _entries = (Entry[])source._entries.Clone();
207 _freeList = source._freeList;
208 _freeCount = source._freeCount;
209 _count = source._count;
210 _fastModMultiplier = source._fastModMultiplier;
211 return;
212 }
213 Initialize(source.Count);
214 Entry[] entries = source._entries;
215 for (int i = 0; i < source._count; i++)
216 {
218 if (reference.Next >= -1)
219 {
221 }
222 }
223 }
bool AddIfNotPresent(T value, out int location)
Definition HashSet.cs:892

References System.Collections.Generic.Dictionary< TKey, TValue >._buckets, System.Collections.Generic.HashSet< T >._buckets, System.Collections.Generic.HashSet< T >._count, System.Collections.Generic.Dictionary< TKey, TValue >._entries, System.Collections.Generic.HashSet< T >._entries, System.Collections.Generic.HashSet< T >._fastModMultiplier, System.Collections.Generic.HashSet< T >._freeCount, System.Collections.Generic.HashSet< T >._freeList, System.Collections.Generic.HashSet< T >.AddIfNotPresent(), System.Collections.HashHelpers.ExpandPrime(), System.Collections.Generic.HashSet< T >.Initialize(), and System.source.

Referenced by System.Collections.Generic.HashSet< T >.HashSet().