dxFeed Graal Native SDK 3.17.0-rc1
Loading...
Searching...
No Matches
Common (v4)

The v4 functions and type names of the group Common. Every function returns DXFG_EXECUTE_SUCCESSFULLY or DXFG_EXECUTE_FAIL and writes its result to a DXFG_OUT parameter, see The v4 functions. More...

Typedefs

typedef dxfg_string_to_double_map_entry_t dxfg_v4_string_to_double_map_entry_t
 A map entry that consists of a string and a double: an element of an array that represents a map from strings to doubles.

Functions

int32_t dxfg_v4_free (graal_isolatethread_t *thread, void *pointer)
 Frees a block of the unmanaged (GraalVM) memory that a function of the SDK allocated, e.g. the array of doubles that dxfg_PriceIncrements_getPriceIncrements() returns.

Detailed Description

The v4 functions and type names of the group Common. Every function returns DXFG_EXECUTE_SUCCESSFULLY or DXFG_EXECUTE_FAIL and writes its result to a DXFG_OUT parameter, see The v4 functions.

Typedef Documentation

◆ dxfg_v4_string_to_double_map_entry_t

A map entry that consists of a string and a double: an element of an array that represents a map from strings to doubles.

An array that a function returns (e.g. dxfg_AdditionalUnderlyings_getMap()) is allocated by the SDK together with the strings of the keys: release it with dxfg_free_string_to_double_map_entries(). An array that is passed to a function (e.g. dxfg_AdditionalUnderlyings_valueOf2()) is only read by the SDK: the caller keeps its ownership.

Function Documentation

◆ dxfg_v4_free()

int32_t dxfg_v4_free ( graal_isolatethread_t * thread,
void * pointer )

Frees a block of the unmanaged (GraalVM) memory that a function of the SDK allocated, e.g. the array of doubles that dxfg_PriceIncrements_getPriceIncrements() returns.

Only a block of memory that a function of the SDK allocated and documents to be released with this function can be passed. Do not use the memory after that.

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]pointerThe pointer to the unmanaged memory that was returned by the SDK.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.