| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public MemoryIO | Returns: A newMemoryIO.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 | Returns: A newMemoryIO.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 | |
| private static final Type | |
| 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 Function | 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 |
| Factory | back to summary |
|---|---|
| public Factory() | |
| 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. 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. 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.
| |
| getType | back to summary |
|---|---|
| private static final Type getType(NativeType type) | |
| 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 Function 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
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final IRubyObject | |
| public static final IRubyObject |
| LastError | back to summary |
|---|---|
| public LastError() | |
| error | back to summary |
|---|---|
public static final IRubyObject error(ThreadContext context, IRubyObject recv)
| |
| error_set | back to summary |
|---|---|
public static final IRubyObject error_set(ThreadContext context, IRubyObject recv, IRubyObject value)
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final IRubyObject | |
| public static final IRubyObject |
| WinapiLastError | back to summary |
|---|---|
| public WinapiLastError() | |
| winapi_error | back to summary |
|---|---|
public static final IRubyObject winapi_error(ThreadContext context, IRubyObject recv)
| |
| winapi_error_set | back to summary |
|---|---|
public static final IRubyObject winapi_error_set(ThreadContext context, IRubyObject recv, IRubyObject value)
| |