Results#

cuest.bindings.cuestResultsCreate(
*,
resultsType: int,
outResults: cuest.bindings.cuest.Results,
) → cuest.bindings.cuest.CuestStatus#

Create a new cuEST results object of the specified type.

Allocates and initializes an opaque results object of the type specified by resultsType. The created object is returned via outResults and must be destroyed with cuestResultsDestroy().

Parameters#

resultsType[in]CuestResultsType

Type of results object to create. Python enum mirroring the C API type cuestResultsType_t.

outResults[out]Results

Pointer to receive allocated opaque results handle.

Returns#

statusCuestStatus
cuest.bindings.cuestResultsDestroy(
*,
resultsType: int,
results: cuest.bindings.cuest.Results,
) → cuest.bindings.cuest.CuestStatus#

Destroy a cuEST results object of the specified type.

Properly deallocates and cleans up resources for a results handle created by cuestResultsCreate().

Parameters#

resultsType[in]CuestResultsType

Type of results object (must match the type used at creation). Python enum mirroring the C API type cuestResultsType_t.

results[in]Results

Results handle to destroy. Must not be NULL.

Returns#

statusCuestStatus
cuest.bindings.cuestResultsQuery(
*,
resultsType: int,
results: cuest.bindings.cuest.Results,
attribute: int,
attributeValue: object,
) → cuest.bindings.cuest.CuestStatus#

Query the value of a given attribute from a cuEST results object.

Parameters#

resultsType[in]CuestResultsType

Type of results object being queried. Python enum mirroring the C API type cuestResultsType_t.

results[in]Results

Opaque handle of the results object (must not be NULL).

attribute[in]int

Integer attribute identifier (cast to appropriate attribute enum internally).

attributeValue[out]data handle (matching the queried attribute’s type)

Destination for the queried value (must not be NULL).

Returns#

statusCuestStatus
cuest.bindings.cuestPCMResultsHandle() → cuest.bindings.cuest.Results#

Create an empty results handle for a CUEST_PCM_RESULTS results object.

The returned handle holds a NULL pointer. Pass it as outResults to cuestResultsCreate() with resultsType set to CuestResultsType.CUEST_PCM_RESULTS to allocate the object, and release it with cuestResultsDestroy().

Returns#

results[out]Results

Empty results handle (NULL value) for CuestResultsType.CUEST_PCM_RESULTS.