GetBaseMask

API definition

APP_ERROR GetBaseMask(int64_t count, uint8_t *mask);

Function

Obtains the flag indicating whether a vector is quickly deleted. The bit value 0 indicates that the vector at this position is deleted and is invalid.

Input

int64_t count: valid length of the mask array.

Output

uint8_t *mask: array indicating whether the vector is deleted.

Return value

APP_ERROR: return status. For details, see Return Code Reference.

Restrictions

  • The value of count must be [1, ceil(ntotal/8)]. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown. ntotal indicates the number of feature vectors.
  • The length of mask must be greater than or equal to count. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown.