checkModule static method

void checkModule(
  1. String? moduleName
)

Checks if a module is present in the previously loaded license.

param moduleName The module name. throws BiosealException An error has occurred during Bioseal Library execution.

Implementation

static void checkModule(String? moduleName) {
  Pointer<Char>? pModuleName = moduleName?.toNativeUtf8().cast<Char>();
  try {
    var err = biosealSDK.id3BiosealLicense_CheckModule(pModuleName ?? nullptr);
    if (err != BiosealError.success.value) {
      throw BiosealException(err);
    }
  } finally {
    if (pModuleName != null) {
      calloc.free(pModuleName);
    }
  }
}