dxFeed Graal Native SDK 3.15.0
Loading...
Searching...
No Matches
CFI.Value' functions

Functions

int32_t dxfg_CFI_Value_getAttribute (graal_isolatethread_t *thread, dxfg_cfi_value_t *cfiValue, DXFG_OUT dxfg_cfi_attribute_t **attribute)
int32_t dxfg_CFI_Value_getCode (graal_isolatethread_t *thread, dxfg_cfi_value_t *cfiValue, DXFG_OUT int16_t *code)
int32_t dxfg_CFI_Value_getName (graal_isolatethread_t *thread, dxfg_cfi_value_t *cfiValue, DXFG_OUT char **name)
int32_t dxfg_CFI_Value_getDescription (graal_isolatethread_t *thread, dxfg_cfi_value_t *cfiValue, DXFG_OUT char **description)

Detailed Description

Function Documentation

◆ dxfg_CFI_Value_getAttribute()

int32_t dxfg_CFI_Value_getAttribute ( graal_isolatethread_t * thread,
dxfg_cfi_value_t * cfiValue,
DXFG_OUT dxfg_cfi_attribute_t ** attribute )

Returns attribute that contains this value.

Sample:

dxfg_cfi_attribute_t *attribute = {};
int32_t result = dxfg_CFI_Value_getAttribute(isolate_thread, value, &attribute);
if (result == DXFG_EXECUTE_SUCCESSFULLY) {
// Do some work with CFI attribute.
// Release
dxfg_JavaObjectHandler_release(isolate_thread, &attribute->handler);
} else {
// Use the dxfg_get_and_clear_thread_exception_t to print the stack trace.
}
int32_t dxfg_CFI_Value_getAttribute(graal_isolatethread_t *thread, dxfg_cfi_value_t *cfiValue, DXFG_OUT dxfg_cfi_attribute_t **attribute)
#define DXFG_EXECUTE_SUCCESSFULLY
Definition dxfg_common.h:72
int32_t dxfg_JavaObjectHandler_release(graal_isolatethread_t *thread, dxfg_java_object_handler *handler)
Definition dxfg_glossary.h:89
dxfg_java_object_handler handler
Definition dxfg_glossary.h:91
Deprecated
Use dxfg_v4_CFI_Value_getAttribute().
Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]cfiValueThe CFI value handle.
[out]attributeA pointer to the result.
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_release() to free the attribute handle.
See also
https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/CFI.Value.html#getAttribute–

◆ dxfg_CFI_Value_getCode()

int32_t dxfg_CFI_Value_getCode ( graal_isolatethread_t * thread,
dxfg_cfi_value_t * cfiValue,
DXFG_OUT int16_t * code )

Returns single UTF16 character code of this value.

Sample:

int16_t code = 0;
int32_t result = dxfg_CFI_Value_getCode(isolate_thread, value, &code); // cfi(OPEFPS).values[0]
if (result == DXFG_EXECUTE_SUCCESSFULLY) {
printf(" code = 0x%x\n", code); // code = 0x4f
printf(" code = '%c'\n", (char)((uint16_t)code & 0xFF)); // code = 'O'
} else {
// Use the dxfg_get_and_clear_thread_exception_t to print the stack trace.
}
int32_t dxfg_CFI_Value_getCode(graal_isolatethread_t *thread, dxfg_cfi_value_t *cfiValue, DXFG_OUT int16_t *code)
Deprecated
Use dxfg_v4_CFI_Value_getCode().
Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]cfiValueThe CFI value handle.
[out]codeA pointer to the result.
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.
See also
https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/CFI.Value.html#getCode–

◆ dxfg_CFI_Value_getDescription()

int32_t dxfg_CFI_Value_getDescription ( graal_isolatethread_t * thread,
dxfg_cfi_value_t * cfiValue,
DXFG_OUT char ** description )

Returns description of this value.

Sample:

char *description = {};
int32_t result = dxfg_CFI_Value_getDescription(isolate_thread, value, &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_Value_getDescription(graal_isolatethread_t *thread, dxfg_cfi_value_t *cfiValue, DXFG_OUT char **description)
int32_t dxfg_String_release(graal_isolatethread_t *thread, const char *string)
Deprecated
Use dxfg_v4_CFI_Value_getDescription().
Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]cfiValueThe CFI value handle.
[out]descriptionA pointer to the value 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 value description.
See also
https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/CFI.Value.html#getDescription–

◆ dxfg_CFI_Value_getName()

int32_t dxfg_CFI_Value_getName ( graal_isolatethread_t * thread,
dxfg_cfi_value_t * cfiValue,
DXFG_OUT char ** name )

Returns short name of this value.

Sample:

char *name = {};
int32_t result = dxfg_CFI_Value_getName(isolate_thread, value, &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_Value_getName(graal_isolatethread_t *thread, dxfg_cfi_value_t *cfiValue, DXFG_OUT char **name)
Deprecated
Use dxfg_v4_CFI_Value_getName().
Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]cfiValueThe CFI value handle.
[out]nameA pointer to the value 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 value name.
See also
https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/CFI.Value.html#getName–