getBase

API definition

void getBase(int deviceId, char* xb) const;

Function

Obtains the feature vectors managed by AscendIndexSQ in the specific deviceId.

Input

int deviceId: device ID

Output

char* xb: feature vectors stored in deviceId by AscendIndexSQ.

Return value

N/A

Restrictions

  • deviceId must be a valid device ID.
  • xb must be a non-null pointer and the length must be dims × BaseSize × sizeof(uint8_t) bytes. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown. BaseSize is the return value of the getBaseSize function.