| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract int | |
| public abstract MemoryIO | Returns: A newAllocatedDirectMemoryIO.The number of bytes to allocate. size, boolean If the memory should be cleared. clear)Allocates memory on the native C heap and wraps it in a |
| public abstract MemoryIO | Returns: A newAllocatedDirectMemoryIO.The number of bytes to allocate. size, int The minimum alignment of the memory align, boolean If the memory should be cleared. clear)Allocates memory on the native C heap and wraps it in a |
| public abstract MemoryIO | Returns: A newAllocatedDirectMemoryIO.The number of bytes to allocate. size, int The minimum alignment of the memory align, boolean If the memory should be cleared. clear)Allocates transient native memory (not from C heap) and wraps it in a |
| public abstract CallbackManager | |
| public static final Factory | |
| public void | init(Ruby
The ruby runtime runtime, RubyModule the module to register the classes under FFI)Registers FFI ruby classes/modules |
| public abstract AbstractInvoker | |
| public abstract int | |
| public abstract MemoryIO | Returns: A newMemoryIO.The native address to wrap. address)Wraps a native C memory address in a |
| Factory | back to summary |
|---|---|
| protected Factory() | |
| alignmentOf | back to summary |
|---|---|
| public abstract int alignmentOf(NativeType type) | |
| allocateDirectMemory | back to summary |
|---|---|
| public abstract MemoryIO allocateDirectMemory(Ruby runtime, int size, boolean clear) Allocates memory on the native C heap and wraps it in a
| |
| allocateDirectMemory | back to summary |
|---|---|
| public abstract MemoryIO allocateDirectMemory(Ruby runtime, int size, int align, boolean clear) Allocates memory on the native C heap and wraps it in a
| |
| allocateTransientDirectMemory | back to summary |
|---|---|
| public abstract MemoryIO allocateTransientDirectMemory(Ruby runtime, int size, int align, boolean clear) Allocates transient native memory (not from C heap) and wraps it in a
| |
| getCallbackManager | back to summary |
|---|---|
| public abstract CallbackManager getCallbackManager() | |
| getInstance | back to summary |
|---|---|
| public static final Factory getInstance() Gets an instance of
| |
| init | back to summary |
|---|---|
| public void init(Ruby runtime, RubyModule FFI) Registers FFI ruby classes/modules
| |
| newFunction | back to summary |
|---|---|
| public abstract AbstractInvoker newFunction(Ruby runtime, Pointer address, CallbackInfo cbInfo) | |
| sizeOf | back to summary |
|---|---|
| public abstract int sizeOf(NativeType type) | |
| wrapDirectMemory | back to summary |
|---|---|
| public abstract MemoryIO wrapDirectMemory(Ruby runtime, long address) Wraps a native C memory address in a
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static final Factory |
| INSTANCE | back to summary |
|---|---|
| private static final Factory INSTANCE | |
| SingletonHolder | back to summary |
|---|---|
| private SingletonHolder() | |
| getInstance | back to summary |
|---|---|
| private static final Factory getInstance() | |