| Modifier and Type | Class and Description |
|---|---|
| private static class | DynamicLibrary.
Small MemoryIO wrapper class to keep the library alive |
| public static class | |
| private static class | DynamicLibrary.
Since the text area of a dynamic library is usually not readable nor writable, wrap the address in a MemoryIO instance that throws an exception on all accesses |
| Modifier and Type | Field and Description |
|---|---|
| private static HashMap | |
| private final Library | |
| private final String | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static RubyClass | |
| private static synchronized String | |
| public IRubyObject | |
| public IRubyObject | |
| pack-priv final Library | |
| private static final int | |
| public IRubyObject | |
| public static final IRubyObject |
| extractedLibraries | back to summary |
|---|---|
| private static HashMap<String, String> extractedLibraries | |
| library | back to summary |
|---|---|
| private final Library library | |
| name | back to summary |
|---|---|
| private final String name | |
| RTLD_GLOBAL | back to summary |
|---|---|
| public static final int RTLD_GLOBAL
| |
| RTLD_LAZY | back to summary |
|---|---|
| public static final int RTLD_LAZY
| |
| RTLD_LOCAL | back to summary |
|---|---|
| public static final int RTLD_LOCAL
| |
| RTLD_NOW | back to summary |
|---|---|
| public static final int RTLD_NOW
| |
| DynamicLibrary | back to summary |
|---|---|
| public DynamicLibrary(Ruby runtime, RubyClass klass, String name, Library library) | |
| createDynamicLibraryClass | back to summary |
|---|---|
| public static RubyClass createDynamicLibraryClass(ThreadContext context, RubyModule FFI, RubyClass Object) | |
| extractLibrary | back to summary |
|---|---|
| private static synchronized String extractLibrary(String name, InputStream resourceAsStream) throws IOException | |
| findFunction | back to summary |
|---|---|
public IRubyObject findFunction(ThreadContext context, IRubyObject symbolName)
| |
| findVariable | back to summary |
|---|---|
public IRubyObject findVariable(ThreadContext context, IRubyObject symbolName)
| |
| getNativeLibrary | back to summary |
|---|---|
| pack-priv final Library getNativeLibrary() | |
| getNativeLibraryFlags | back to summary |
|---|---|
| private static final int getNativeLibraryFlags(ThreadContext context, IRubyObject rbFlags) | |
| name | back to summary |
|---|---|
public IRubyObject name(ThreadContext context)
| |
| open | back to summary |
|---|---|
public static final IRubyObject open(ThreadContext context, IRubyObject recv, IRubyObject libraryName, IRubyObject libraryFlags)
| |
| Modifier and Type | Field and Description |
|---|---|
| private final DynamicLibrary |
| Access | Constructor and Description |
|---|---|
| public |
| library | back to summary |
|---|---|
| private final DynamicLibrary library | |
| DataSymbolMemoryIO | back to summary |
|---|---|
| public DataSymbolMemoryIO(Ruby runtime, DynamicLibrary library, long address) | |
| Modifier and Type | Field and Description |
|---|---|
| private final DynamicLibrary | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final String | |
| public IRubyObject | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| public IRubyObject | |
| public IRubyObject | |
| public final String | toString()
Overrides org. The default toString method is just a wrapper that calls the Ruby "to_s" method. |
| library | back to summary |
|---|---|
| private final DynamicLibrary library | |
| name | back to summary |
|---|---|
| private final String name | |
| Symbol | back to summary |
|---|---|
| public Symbol(Ruby runtime, DynamicLibrary library, String name, MemoryIO io) | |
| getName | back to summary |
|---|---|
| pack-priv final String getName() | |
| inspect | back to summary |
|---|---|
| public IRubyObject inspect(ThreadContext context) Overrides org. Overrides default org. Doc from org. Returns a string containing a human-readable representation of
obj. If not overridden, uses the
| |
| library | back to summary |
|---|---|
public IRubyObject library(ThreadContext context)
| |
| to_s | back to summary |
|---|---|
| public IRubyObject to_s(ThreadContext context) Overrides org.
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides org. Doc from org. The default toString method is just a wrapper that calls the Ruby "to_s" method. | |
| Modifier and Type | Field and Description |
|---|---|
| private final DynamicLibrary |
| Access | Constructor and Description |
|---|---|
| public |
| library | back to summary |
|---|---|
| private final DynamicLibrary library | |
| TextSymbolMemoryIO | back to summary |
|---|---|
| public TextSymbolMemoryIO(Ruby runtime, DynamicLibrary library, long address) | |