public class NoImplFactory extends Factory
| Constructor and Description |
|---|
NoImplFactory(String msg) |
| Modifier and Type | Method and Description |
|---|---|
int |
alignmentOf(NativeType type) |
MemoryIO |
allocateDirectMemory(Ruby runtime,
int size,
boolean clear)
Allocates memory on the native C heap and wraps it in a MemoryIO accessor.
|
MemoryIO |
allocateDirectMemory(Ruby runtime,
int size,
int align,
boolean clear)
Allocates memory on the native C heap and wraps it in a MemoryIO accessor.
|
MemoryIO |
allocateTransientDirectMemory(Ruby runtime,
int size,
int align,
boolean clear)
Allocates transient native memory (not from C heap) and wraps it in a MemoryIO accessor.
|
CallbackManager |
getCallbackManager() |
void |
init(Ruby runtime,
RubyModule ffi)
Registers FFI ruby classes/modules
|
AbstractInvoker |
newFunction(Ruby runtime,
Pointer address,
CallbackInfo cbInfo) |
int |
sizeOf(NativeType type) |
MemoryIO |
wrapDirectMemory(Ruby runtime,
long address)
Wraps a native C memory address in a MemoryIO accessor.
|
getInstancepublic NoImplFactory(String msg)
public void init(Ruby runtime, RubyModule ffi)
Factorypublic MemoryIO allocateDirectMemory(Ruby runtime, int size, boolean clear)
FactoryallocateDirectMemory in class Factorysize - The number of bytes to allocate.clear - If the memory should be cleared.public MemoryIO allocateDirectMemory(Ruby runtime, int size, int align, boolean clear)
FactoryallocateDirectMemory in class Factorysize - The number of bytes to allocate.align - The minimum alignment of the memoryclear - If the memory should be cleared.public MemoryIO allocateTransientDirectMemory(Ruby runtime, int size, int align, boolean clear)
FactoryallocateTransientDirectMemory in class Factorysize - The number of bytes to allocate.align - The minimum alignment of the memoryclear - If the memory should be cleared.public MemoryIO wrapDirectMemory(Ruby runtime, long address)
FactorywrapDirectMemory in class Factoryaddress - The native address to wrap.public CallbackManager getCallbackManager()
getCallbackManager in class Factorypublic AbstractInvoker newFunction(Ruby runtime, Pointer address, CallbackInfo cbInfo)
newFunction in class Factorypublic int sizeOf(NativeType type)
public int alignmentOf(NativeType type)
alignmentOf in class FactoryCopyright © 2001–2024 JRuby. All rights reserved.