dxFeed Graal Native SDK 3.9.0
Loading...
Searching...
No Matches
Common

Data Structures

struct  dxfg_string_to_double_map_entry_t
 Single map entry. A pair of string and double. More...

Macros

#define DXFG_OUT
#define DXFG_EXECUTE_SUCCESSFULLY   ((int32_t)0)
#define DXFG_EXECUTE_FAIL   ((int32_t)-1)

Typedefs

typedef struct dxfg_string_to_double_map_entry_t dxfg_string_to_double_map_entry_t
 Single map entry. A pair of string and double.

Functions

int32_t dxfg_free_string_to_double_map_entries (graal_isolatethread_t *thread, dxfg_string_to_double_map_entry_t *mapEntries, int32_t size)
int32_t dxfg_free (graal_isolatethread_t *thread, void *pointer)
int32_t dxfg_free_strings (graal_isolatethread_t *thread, char **strings, int32_t size)

Detailed Description

Macro Definition Documentation

◆ DXFG_EXECUTE_FAIL

#define DXFG_EXECUTE_FAIL   ((int32_t)-1)

A result that signals an error that any dxFeed Graal Native SDK function can return. For information about the thrown exception, see the dxfg_get_and_clear_thread_exception_t() function.

◆ DXFG_EXECUTE_SUCCESSFULLY

#define DXFG_EXECUTE_SUCCESSFULLY   ((int32_t)0)

Marks a deprecated function: the compilers warn where it is used. The function still works, see its description for the replacement. A successful result that any dxFeed Graal Native SDK function can return.

◆ DXFG_OUT

#define DXFG_OUT

Typedef Documentation

◆ dxfg_string_to_double_map_entry_t

typedef struct dxfg_string_to_double_map_entry_t dxfg_string_to_double_map_entry_t

Single map entry. A pair of string and double.

Function Documentation

◆ dxfg_free()

int32_t dxfg_free ( graal_isolatethread_t * thread,
void * pointer )

Frees unmanaged (GraalVM) memory by pointer.

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]pointerThe pointer to unmanaged memory.
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.

◆ dxfg_free_string_to_double_map_entries()

int32_t dxfg_free_string_to_double_map_entries ( graal_isolatethread_t * thread,
dxfg_string_to_double_map_entry_t * mapEntries,
int32_t size )

Frees memory occupied by string to double map entries.

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]mapEntriesThe array of map entries ([string, double] pair).
[in]sizeA size of the array.
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.

◆ dxfg_free_strings()

int32_t dxfg_free_strings ( graal_isolatethread_t * thread,
char ** strings,
int32_t size )

Frees array of C-strings.

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]stringsThe array of strings.
[in]sizeThe array 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.