StringNames

gdext.builtin.StringNames
object StringNames

Process-lifetime cache of StringNames keyed by their Scala string.

Entries are allocated with libc malloc (not the GC) so the 8-byte handle has a stable address for the whole process and is never moved or collected; they are intentionally never freed (the cache lives as long as the extension). This mirrors how name interning is meant to be used.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def cached(name: String): StringName

Return the cached StringName for name, creating it on first use.

Return the cached StringName for name, creating it on first use.

Attributes