getModuleCount static method

int getModuleCount()

Retrieves the number of modules in the license.

return The number of modules in the license. throws BiosealException An error has occurred during Bioseal Library execution.

Implementation

static int getModuleCount() {
  Pointer<Int> pCount = calloc();
  try {
    var err = biosealSDK.id3BiosealLicense_GetModuleCount(pCount);
    if (err != BiosealError.success.value) {
      throw BiosealException(err);
    }
    final vCount = pCount.value;
    return vCount;
  } finally {
    calloc.free(pCount);
  }
}