OptionallruMaxSize: numberHighest indexed ID in constant time; zero for an empty index.
Iterate over all entries (Map-compatible interface). Yields [expressId, EntityRef] pairs.
Clear the LRU cache (e.g., on model unload).
Iterate over all entries (Map.entries()-compatible).
Estimate memory usage in bytes.
forEach (Map-compatible interface).
Get EntityRef by expressId (Map-compatible interface). Uses LRU cache to avoid repeated object allocation for hot entities.
Get byte offset and length for an expressId without full EntityRef allocation.
Borrow numeric backing, valid until its owner detaches it; do not mutate. Cache consumers must not detach. Transport may transfer a retired index.
Get the type string for an expressId without full EntityRef allocation.
Check if an expressId exists (Map-compatible interface).
Iterate over all expressIds (Map.keys()-compatible).
Iterate over all EntityRefs (Map.values()-compatible).
Compact read-only entity index backed by sorted typed arrays. Implements the same interface as Map<number, EntityRef> for lookups.