Struct StorageGrowth
Namespace: KenseiECS
One growth of a storage array past what a reserve stated for it (ReserveEntities(), Reserve(), Reserve(), a filter reserved by its types or the obsolete Reserve()): which array of which pool, filter or world grew, from what size to what size, and on which tick. FirstGrowthAfterReserve returns the first one; it is empty (IsEmpty) while nothing outgrew the reserve, and always without KENSEI_DEBUG.
public readonly struct StorageGrowthInherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Fields
NewSize
Size after the growth, counted like OldSize; for a filter sparse page, one past the last entity index the new page covers.
public readonly int NewSizeField Value
OldSize
Size before the growth. For a filter's dense array it is the capacity in entities (the array keeps one more slot); for a filter sparse page, the first entity index the new page covers.
public readonly int OldSizeField Value
Owner
What owns the array: the component type name for a pool, the filter's description (Filter Inc<A, B>) for a filter, or World. Null when empty.
public readonly string OwnerField Value
Reserved
The reserved size of that dimension when it grew: the entities or components value passed to the obsolete Reserve(), the pool's ReservedComponents (pool dense), the filter's ReservedCount (filter dense) or ReservedEntities (entity slots, free-slot list, the sparse side of a reserved pool or filter).
public readonly int ReservedField Value
Storage
Which array grew: entity slots, free-slot list, pool sparse, pool dense, filter dense or filter sparse page. Null when empty.
public readonly string StorageField Value
Tick
Tick when the array grew.
public readonly int TickField Value
Properties
IsEmpty
True while nothing has outgrown the reserve (and always without KENSEI_DEBUG).
public bool IsEmpty { get; }Property Value
Methods
ToString()
For example Position pool dense 512 -> 1024 (reserved 512) at tick 182, or none.
public override string ToString()