getCount method

int getCount()

Gets the number of elements in the FaceTemplateDict object.

return Number of elements in the FaceTemplate object. throws FaceException An error has occurred during Face Library execution.

Implementation

int getCount() {
  Pointer<Int> pCount = calloc();
  try {
    var err = faceSDK.id3FaceTemplateDict_GetCount(_pHandle.value, pCount);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vCount = pCount.value;
    return vCount;
  } finally {
    calloc.free(pCount);
  }
}