Example #1
0
 public void EnsureCapacity()
 {
     if (this.count == this.capacity)
     {
         this.capacity = this.capacity * 2;
         this.queries  = MemoryUtility.Realloc(queries, this.capacity);
     }
 }
Example #2
0
 public void EnsureCapacity()
 {
     if (this.count == this.capacity)
     {
         this.capacity   = this.capacity * 2;
         this.archetypes = MemoryUtility.Realloc(archetypes, this.capacity);
     }
 }
Example #3
0
        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);
            }
        }
Example #4
0
        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);
            }
        }