No matching definitions.

ecs/storage

src/ecs/storage.tur

dense storage keyed by entity index.

Since: E0; struct support added in E1' after the ABI fix landed

defopaque

Dense

(Dense [A] :int))
defn

dense-new

(dense-new [A])

allocate an empty dense storage. Returns a `(Dense A)`.

Since: E0 (returned :int); E2d-P1 (returns (Dense A))

defn

dense-len

(dense-len [A])

logical length (one past the largest written index).

Since: E0

defn

dense-set!

(dense-set! [A])

write a value at entity slot idx, marking it present.

Since: E0

defn

dense-has?

(dense-has? [A])

is slot idx populated?

Since: E0

defn

dense-get

(dense-get [A])

read the value at slot idx (typed A). With the handle

Since: E0

defn

dense-free

(dense-free [A])

release the storage's backing arrays.

Since: E0