public final class Library extends Object
Modifier and Type | Field and Description |
---|---|
static int |
GLOBAL
All symbols in the library are made available to other libraries
|
static int |
LAZY
Perform lazy binding.
|
static int |
LOCAL
Symbols in this library are not made available to other libraries
|
static int |
NOW
Resolve all symbols when loading the library
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
static Library |
getCachedInstance(String name,
int flags)
Gets a handle for the named library.
|
static Library |
getDefault()
Gets a handle to the default library.
|
static String |
getLastError()
Gets the current error string from dlopen/LoadLibrary.
|
long |
getSymbolAddress(String name)
Gets the address of a symbol within the Library.
|
static Library |
openLibrary(String name,
int flags)
Gets a handle for the named library.
|
public static final int LAZY
public static final int NOW
public static final int LOCAL
public static final int GLOBAL
public static final Library getDefault()
public static final Library getCachedInstance(String name, int flags)
name
- The name or path of the library to open.flags
- The library flags (e.g. LAZY, NOW, LOCAL, GLOBAL)public static final Library openLibrary(String name, int flags)
name
- The name or path of the library to open.flags
- The library flags (e.g. LAZY, NOW, LOCAL, GLOBAL)public final long getSymbolAddress(String name)
name
- The name of the symbol to locate.public static final String getLastError()
Copyright © 2016. All Rights Reserved.