def floor_step

bendvy-ecs-core@0.1.0.3 · entity_allocator.bend:139

import bendvy-ecs-core@0.1.0.3/entity_allocator.bend as EntityAllocator
import Base

139def floor_step(grow:Bool,+floor:U32,next:Allocator -> Allocator,allocator:Allocator) -> Allocator:
140  match grow allocator:
141    case False{} allocator:floor_finish(floor,allocator)
142    case True{} Allocator{n,high,slots,+capacity,+depth,free,order}:next(Allocator{n,high,ANode{slots,Array.new(Slot,depth,Slot{0,Consumed{}})},(capacity * 2 : U32),1n+depth,free,order})

Uses (10)

Used by (1)