/** * Gets the address of a symbol within the <tt>Library</tt>. * * @param name The name of the symbol to locate. * @return The address of the symbol within the current address space. */ public final long getSymbolAddress(String name) { try { return foreign.dlsym(handle, name); } catch (UnsatisfiedLinkError ex) { lastError.set(foreign.dlerror()); return 0; } }
/** * Gets the address of a symbol within the <tt>Library</tt>. * * @param name The name of the symbol to locate. * @return The address of the symbol within the current address space. */ public final long getSymbolAddress(String name) { try { return foreign.dlsym(handle, name); } catch (UnsatisfiedLinkError ex) { lastError.set(foreign.dlerror()); return 0; } }
/** * Gets the address of a symbol within the <tt>Library</tt>. * * @param name The name of the symbol to locate. * @return The address of the symbol within the current address space. */ public final long getSymbolAddress(String name) { try { return foreign.dlsym(handle, name); } catch (UnsatisfiedLinkError ex) { lastError.set(foreign.dlerror()); return 0; } }