dxFeed Graal Native SDK 3.13.0
Loading...
Searching...
No Matches
CFI.Attribute' functions

Functions

int32_t dxfg_CFI_Attribute_getName (graal_isolatethread_t *thread, dxfg_cfi_attribute_t *cfiAttribute, DXFG_OUT char **name)
int32_t dxfg_CFI_Attribute_getDescription (graal_isolatethread_t *thread, dxfg_cfi_attribute_t *cfiAttribute, DXFG_OUT char **description)
int32_t dxfg_CFI_Attribute_getValues (graal_isolatethread_t *thread, dxfg_cfi_attribute_t *cfiAttribute, DXFG_OUT dxfg_cfi_value_t **values, DXFG_OUT int32_t *size)

Detailed Description

Function Documentation

◆ dxfg_CFI_Attribute_getDescription()

int32_t dxfg_CFI_Attribute_getDescription ( graal_isolatethread_t * thread,
dxfg_cfi_attribute_t * cfiAttribute,
DXFG_OUT char ** description )

Returns description of this attribute.

Sample:

char *description = {};
int32_t result = dxfg_CFI_Attribute_getDescription(isolate_thread, attribute, &description);
if (result == DXFG_EXECUTE_SUCCESSFULLY) {
printf(" description = %s\n", description);
dxfg_String_release(isolate_thread, description);
} else {
// Use the dxfg_get_and_clear_thread_exception_t to print the stack trace.
}
int32_t dxfg_CFI_Attribute_getDescription(graal_isolatethread_t *thread, dxfg_cfi_attribute_t *cfiAttribute, DXFG_OUT char **description)
#define DXFG_EXECUTE_SUCCESSFULLY
Definition dxfg_common.h:72
int32_t dxfg_String_release(graal_isolatethread_t *thread, const char *string)
Deprecated
Use dxfg_v4_CFI_Attribute_getDescription().
Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]cfiAttributeThe CFI attribute handle.
[out]descriptionA pointer to the attribute description.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown. Use dxfg_String_release() to free the attribute description.
See also
https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/CFI.Attribute.html#getDescription–

◆ dxfg_CFI_Attribute_getName()

int32_t dxfg_CFI_Attribute_getName ( graal_isolatethread_t * thread,
dxfg_cfi_attribute_t * cfiAttribute,
DXFG_OUT char ** name )

Returns short name of this attribute.

Sample:

char *name = {};
int32_t result = dxfg_CFI_Attribute_getName(isolate_thread, attribute, &name);
if (result == DXFG_EXECUTE_SUCCESSFULLY) {
printf(" name = %s\n", name);
dxfg_String_release(isolate_thread, name);
} else {
// Use the dxfg_get_and_clear_thread_exception_t to print the stack trace.
}
int32_t dxfg_CFI_Attribute_getName(graal_isolatethread_t *thread, dxfg_cfi_attribute_t *cfiAttribute, DXFG_OUT char **name)
Deprecated
Use dxfg_v4_CFI_Attribute_getName().
Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]cfiAttributeThe CFI attribute handle.
[out]nameA pointer to the attribute name.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown. Use dxfg_String_release() to free the attribute name.
See also
https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/CFI.Attribute.html#getName–

◆ dxfg_CFI_Attribute_getValues()

int32_t dxfg_CFI_Attribute_getValues ( graal_isolatethread_t * thread,
dxfg_cfi_attribute_t * cfiAttribute,
DXFG_OUT dxfg_cfi_value_t ** values,
DXFG_OUT int32_t * size )

Returns values of this attribute.

Sample:

dxfg_cfi_value_t *values = {};
int32_t size = 0;
int32_t result = dxfg_CFI_Attribute_getValues(isolate_thread, attributes, &values, &size);
if (result == DXFG_EXECUTE_SUCCESSFULLY) {
// Do something with values.
// Release.
dxfg_JavaObjectHandler_array_release(isolate_thread, (const dxfg_java_object_handler **)values, size);
} else {
// Use the dxfg_get_and_clear_thread_exception_t to print the stack trace.
}
int32_t dxfg_CFI_Attribute_getValues(graal_isolatethread_t *thread, dxfg_cfi_attribute_t *cfiAttribute, DXFG_OUT dxfg_cfi_value_t **values, DXFG_OUT int32_t *size)
int32_t dxfg_JavaObjectHandler_array_release(graal_isolatethread_t *thread, const dxfg_java_object_handler **handlersArray, int32_t size)
Definition dxfg_glossary.h:109
The handle of a Java object: the reference by which the C code refers to an object that lives in Java...
Definition dxfg_javac.h:60
Deprecated
Use dxfg_v4_CFI_Attribute_getValues().
Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]cfiAttributeThe CFI attribute handle.
[out]valuesA pointer to the result.
[out]sizeA pointer to the result size.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown. Use dxfg_JavaObjectHandler_array_release() to free the array of values. If there is a need to extend the life of some Value, then you can clone the handle using the dxfg_JavaObjectHandler_clone() function.
See also
https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/CFI.Attribute.html#getValues–