private void Grow() { var map = new BiomeDataManager(_allocSize << 1 | 1); foreach (var it in GetEnumerator()) { map.Grow(it); } _count = map._count; _allocSize = map._allocSize; _data = map._data; }
public void GC() { lock (this) { var map = new BiomeDataManager(_allocSize); foreach (var it in GetEnumerator()) { map.Grow(it); } _count = map._count; _allocSize = map._allocSize; _data = map._data; } }