public void EnsureCapacity() { if (this.count == this.capacity) { this.capacity = this.capacity * 2; this.queries = MemoryUtility.Realloc(queries, this.capacity); } }
public void EnsureCapacity() { if (this.count == this.capacity) { this.capacity = this.capacity * 2; this.archetypes = MemoryUtility.Realloc(archetypes, this.capacity); } }
public void EnsureCapacity(int count) { int requiredCapacity = this.count + count; if (requiredCapacity > this.capacity) { this.capacity = MemoryUtility.RoundToPowerOfTwo(requiredCapacity); this.entitiesInChunk = MemoryUtility.Realloc <EntityInChunk>(this.entitiesInChunk, this.capacity); } }
public void EnsureCapacity(int count) { int requiredCapacity = this.count + count; if (requiredCapacity > this.capacity) { this.capacity = MemoryUtility.RoundToPowerOfTwo(requiredCapacity); this.slots = MemoryUtility.Realloc <int>(this.slots, this.capacity); } }