Skip to content

Next: GetInstanceMemberCount

Archie_UwU edited this page Oct 15, 2024 · 1 revision

Gets the number of variables in a struct or instance.

Syntax

AurieStatus GetInstanceMemberCount(
    [in]  RValue   Object,
    [out] int32_t& Count
);

Parameters

Object

An RValue containing the pointer to the instance object whose variables are to be counted. This variable must be of type VALUE_OBJECT.

Count

A reference to a 32-bit integer, which receives the number of variables stored in the struct / instance. Please note that built-in variables (such as x, image_index, etc.) are not counted. The value stored in this variable prior to calling this function is guaranteed to remain unchanged if the function fails.

Return Value

The function returns AURIE_SUCCESS on success, otherwise returns a matching error code. If the internal runner function needed for enumerating instance members isn't available, the AURIE_UNAVAILABLE status code is returned. The function returns AURIE_INVALID_PARAMETER if the Object parameter contains an invalid type.

Quick Access

Documentation

Writeups

Clone this wiki locally