|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.ext.ffi.Factory
org.jruby.ext.ffi.NoImplFactory
public class NoImplFactory
An instance of Factory that is used when no FFI implementation can be found.
Constructor Summary | |
---|---|
NoImplFactory(java.lang.String msg)
|
Method Summary | |
---|---|
int |
alignmentOf(NativeType type)
|
AllocatedDirectMemoryIO |
allocateDirectMemory(Ruby runtime,
int size,
boolean clear)
Allocates memory on the native C heap and wraps it in a MemoryIO accessor. |
AllocatedDirectMemoryIO |
allocateDirectMemory(Ruby runtime,
int size,
int align,
boolean clear)
Allocates memory on the native 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)
|
DirectMemoryIO |
wrapDirectMemory(Ruby runtime,
long address)
Wraps a native C memory address in a MemoryIO accessor. |
Methods inherited from class org.jruby.ext.ffi.Factory |
---|
getInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoImplFactory(java.lang.String msg)
Method Detail |
---|
public void init(Ruby runtime, RubyModule ffi)
Factory
init
in class Factory
public AllocatedDirectMemoryIO allocateDirectMemory(Ruby runtime, int size, boolean clear)
Factory
allocateDirectMemory
in class Factory
size
- The number of bytes to allocate.clear
- If the memory should be cleared.
public AllocatedDirectMemoryIO allocateDirectMemory(Ruby runtime, int size, int align, boolean clear)
Factory
allocateDirectMemory
in class Factory
size
- The number of bytes to allocate.align
- The minimum alignment of the memoryclear
- If the memory should be cleared.
public DirectMemoryIO wrapDirectMemory(Ruby runtime, long address)
Factory
wrapDirectMemory
in class Factory
address
- The native address to wrap.
public CallbackManager getCallbackManager()
getCallbackManager
in class Factory
public AbstractInvoker newFunction(Ruby runtime, Pointer address, CallbackInfo cbInfo)
newFunction
in class Factory
public int sizeOf(NativeType type)
sizeOf
in class Factory
public int alignmentOf(NativeType type)
alignmentOf
in class Factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |