getVersionEx static method

LibVersion getVersionEx()

Retrieves the library version as a structure.

return The version. throws FaceException An error has occurred during Face Library execution.

Implementation

static LibVersion getVersionEx() {
  Pointer<id3FaceLibVersion> pVersion = calloc();
  var err = faceSDK.id3FaceLibrary_GetVersionEx(pVersion);
  if (err != FaceError.success.value) {
  	calloc.free(pVersion);
  	throw FaceException(err);
  }
  return LibVersion(pVersion);
}