Next: GetInstanceMemberCount - AurieFramework/YYToolkit GitHub Wiki
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
Value | Description |
---|---|
AURIE_SUCCESS |
The method succeeded, and the member count was written into the buffer. |
AURIE_UNAVAILABLE |
The internal function needed is unavailable. |
AURIE_INVALID_PARAMETER |
Object does not refer to an instance or struct. |
Requirements
Criterium | Value |
---|---|
Minimum YYTK Version | 4.0.0 |
Context | Engine-synchronous |