Results#
- cuest.bindings.cuestResultsCreate(
- *,
- resultsType: int,
- outResults: cuest.bindings.cuest.Results,
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 viaoutResultsand must be destroyed withcuestResultsDestroy().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_STATUS_SUCCESSon success;CUEST_STATUS_NULL_POINTERifoutResultsis NULL;CUEST_STATUS_INVALID_TYPEifresultsTypeis invalid;CUEST_STATUS_EXCEPTIONorCUEST_STATUS_UNKNOWN_ERRORotherwise.
- cuest.bindings.cuestResultsDestroy(
- *,
- resultsType: int,
- results: cuest.bindings.cuest.Results,
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_STATUS_SUCCESSon success;CUEST_STATUS_NULL_POINTERifresultsis NULL;CUEST_STATUS_INVALID_TYPEifresultsTypedoes not match the actual type ofresults;CUEST_STATUS_EXCEPTIONorCUEST_STATUS_UNKNOWN_ERRORotherwise.
- cuest.bindings.cuestResultsQuery(
- *,
- resultsType: int,
- results: cuest.bindings.cuest.Results,
- attribute: int,
- attributeValue: object,
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_STATUS_SUCCESSon success;CUEST_STATUS_NULL_POINTERifresultsorattributeValueis NULL;CUEST_STATUS_INVALID_TYPEifresultsis not of the specifiedresultsType, orattributeValuehas the wrong data type;CUEST_STATUS_INVALID_SIZEif the size ofattributeValuedoes not match the attribute type size;CUEST_STATUS_INVALID_PARAMETERif the attribute is not recognized for the givenresultsType;CUEST_STATUS_EXCEPTIONorCUEST_STATUS_UNKNOWN_ERRORotherwise.
- cuest.bindings.cuestPCMResultsHandle() cuest.bindings.cuest.Results#
Create an empty results handle for a
CUEST_PCM_RESULTSresults object.The returned handle holds a NULL pointer. Pass it as
outResultstocuestResultsCreate()withresultsTypeset toCuestResultsType.CUEST_PCM_RESULTSto allocate the object, and release it withcuestResultsDestroy().Returns#
- results[out]Results
Empty results handle (NULL value) for
CuestResultsType.CUEST_PCM_RESULTS.