verifyLibrary static method
Verify library can be loaded and is valid
Implementation
static bool verifyLibrary({String? libraryPath}) {
try {
final lib = loadLibrary(libraryPath: libraryPath);
// Try to lookup a known symbol to verify it's a valid ODPI-C library
lib.lookup('dpiContext_create');
return true;
} catch (e) {
return false;
}
}