Skip to content

Next: GetVariableSlot

Archie_UwU edited this page Apr 9, 2024 · 2 revisions

Uses the Code_Variable_FindAlloc_Slot_From_Name function to allocate or find a variable's hash in an object's hashmap.

Syntax

AurieStatus GetVariableSlot(
    [in]  const RValue& Object,
    [in]  const char*   VariableName
    [out] int32_t&      Hash
);

Parameters

Object

This parameter is reserved for future use. Currently ignored.

VariableName

A pointer to a buffer that contains the name of the variable whose name will be converted to a slot ID.

Hash

A reference to a 32-bit integer, into which the hash of VariableName will be written. If the function fails, the value in the buffer referenced by Hash isn't overwritten.

Return Value

The function returns AURIE_SUCCESS on success, otherwise returns a matching error code. If the internal runner function needed for hashing variable names isn't available, the AURIE_MODULE_INTERNAL_ERROR status code is returned.

Quick Access

Documentation

Writeups

Clone this wiki locally