| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public MemoryIO | allocateDirectMemory(Ruby runtime, int
The number of bytes to allocate. size, boolean If the memory should be cleared. clear)Implements abstract org. Allocates memory on the native C heap and wraps it in a |
| public MemoryIO | allocateDirectMemory(Ruby runtime, int
The number of bytes to allocate. size, int The minimum alignment of the memory align, boolean If the memory should be cleared. clear)Implements abstract org. Allocates memory on the native C heap and wraps it in a |
| public MemoryIO | allocateTransientDirectMemory(Ruby runtime, int
The number of bytes to allocate. size, int The minimum alignment of the memory align, boolean If the memory should be cleared. clear)Implements abstract org. Allocates transient native memory (not from C heap) and wraps it in a |
| public CallbackManager | |
| public void | init(Ruby
The ruby runtime runtime, RubyModule the module to register the classes under ffi)Overrides org. Registers FFI ruby classes/modules |
| public AbstractInvoker | newFunction(Ruby runtime, Pointer address, CallbackInfo cbInfo)
Implements abstract org.
|
| public int | |
| public MemoryIO | wrapDirectMemory(Ruby runtime, long
The native address to wrap. address)Implements abstract org. Wraps a native C memory address in a |
| msg | back to summary |
|---|---|
| private final String msg | |
| NoImplFactory | back to summary |
|---|---|
| public NoImplFactory(String msg) | |
| alignmentOf | back to summary |
|---|---|
| public int alignmentOf(NativeType type) Implements abstract org.
| |
| allocateDirectMemory | back to summary |
|---|---|
| public MemoryIO allocateDirectMemory(Ruby runtime, int size, boolean clear) Implements abstract org. Doc from org. Allocates memory on the native C heap and wraps it in a | |
| allocateDirectMemory | back to summary |
|---|---|
| public MemoryIO allocateDirectMemory(Ruby runtime, int size, int align, boolean clear) Implements abstract org. Doc from org. Allocates memory on the native C heap and wraps it in a | |
| allocateTransientDirectMemory | back to summary |
|---|---|
| public MemoryIO allocateTransientDirectMemory(Ruby runtime, int size, int align, boolean clear) Implements abstract org. Doc from org. Allocates transient native memory (not from C heap) and wraps it in a | |
| getCallbackManager | back to summary |
|---|---|
| public CallbackManager getCallbackManager() Implements abstract org.
| |
| init | back to summary |
|---|---|
| public void init(Ruby runtime, RubyModule ffi) Overrides org. Doc from org. Registers FFI ruby classes/modules
| |
| newFunction | back to summary |
|---|---|
| public AbstractInvoker newFunction(Ruby runtime, Pointer address, CallbackInfo cbInfo) Implements abstract org.
| |
| sizeOf | back to summary |
|---|---|
| public int sizeOf(NativeType type) Implements abstract org.
| |
| wrapDirectMemory | back to summary |
|---|---|
| public MemoryIO wrapDirectMemory(Ruby runtime, long address) Implements abstract org. Doc from org. Wraps a native C memory address in a | |