Name strings
Types
-
Represents one name string.
Alias types
-
The name ID type.
Functions
-
const c8 * intern_name(const c8 *name)
Interns one name string to the runtime and fetches the interned address for it.
-
const c8 * intern_name(const c8 *name, usize count)
Interns one name string to the runtime and fetches the interned address for it.
-
void retain_name(const c8 *name)
Increases the reference count of the name string by 1.
-
void release_name(const c8 *name)
Decreases the reference count of the name string by 1, and eventually frees the name string when the reference count goes to 0.
-
name_id_t get_name_id(const c8 *name)
Gets the ID for the specified name. The ID keeps constant between multiple processes.
-
usize get_name_size(const c8 *name)
Fetches the size of the name string.
-
Gets the type object of Name.