Package | Description |
---|---|
jnr.ffi | |
jnr.ffi.byref | |
jnr.ffi.provider | |
jnr.ffi.provider.jffi |
Modifier and Type | Method and Description |
---|---|
Runtime |
StructLayout.getRuntime() |
abstract Runtime |
FFIProvider.getRuntime()
Gets the default Runtime for this provider
|
abstract Runtime |
Pointer.getRuntime()
Gets the
Runtime this Pointer instance belongs to. |
Runtime |
Struct.getRuntime() |
static Runtime |
Library.getRuntime(Object obj) |
static Runtime |
Runtime.getSystemRuntime()
Gets the global Runtime for the current FFI provider
|
Modifier and Type | Method and Description |
---|---|
static Pointer |
Memory.allocate(Runtime runtime,
int size)
Allocates a new block of java memory and wraps it in a
Pointer
accessor. |
static Pointer |
Memory.allocate(Runtime runtime,
NativeType type)
Allocates a new block of java memory and wraps it in a
Pointer
accessor. |
static Pointer |
Memory.allocateDirect(Runtime runtime,
int size)
Allocates a new block of native memory and wraps it in a
Pointer
accessor. |
static Pointer |
Memory.allocateDirect(Runtime runtime,
int size,
boolean clear)
Allocates a new block of native memory and wraps it in a
Pointer
accessor. |
static Pointer |
Memory.allocateDirect(Runtime runtime,
NativeType type)
Allocates a new block of native memory and wraps it in a
Pointer
accessor. |
static Pointer |
Memory.allocateTemporary(Runtime runtime,
NativeType type)
Allocates a new block of transient native memory and wraps it in a
Pointer
accessor. |
static Pointer |
Memory.allocateTemporary(Runtime runtime,
NativeType type,
boolean clear)
Allocates a new block of transient native memory and wraps it in a
Pointer
accessor. |
static <T extends Struct> |
Struct.arrayOf(Runtime runtime,
Class<T> type,
int length) |
static int |
LastError.getLastError(Runtime runtime)
Gets the value of errno from the last native call.
|
static ObjectReferenceManager |
ObjectReferenceManager.newInstance(Runtime runtime) |
static Pointer |
Pointer.newIntPointer(Runtime runtime,
long address)
Wraps an integer value in an opaque
Pointer instance. |
static void |
LastError.setLastError(Runtime runtime,
int error)
Sets the native errno value.
|
static Pointer |
Pointer.wrap(Runtime runtime,
ByteBuffer buffer)
Wraps an existing ByteBuffer in a
Pointer implementation so it can
be used as a parameter to native functions. |
static Pointer |
Pointer.wrap(Runtime runtime,
long address)
Wraps a native address in a
Pointer instance. |
static Pointer |
Pointer.wrap(Runtime runtime,
long address,
long size)
Wraps a native address in a
Pointer instance. |
Constructor and Description |
---|
Struct(Runtime runtime)
Creates a new Struct.
|
StructLayout(Runtime runtime)
Creates a new StructLayout.
|
Union(Runtime runtime) |
Modifier and Type | Method and Description |
---|---|
int |
AddressByReference.nativeSize(Runtime runtime)
Gets the native size of type of reference
|
int |
IntByReference.nativeSize(Runtime runtime)
Gets the native size of type of reference
|
int |
ByteByReference.nativeSize(Runtime runtime)
Gets the native size of type of reference in bytes.
|
int |
LongLongByReference.nativeSize(Runtime runtime)
Gets the native size of type of reference in bytes.
|
int |
NativeLongByReference.nativeSize(Runtime runtime)
Gets the native size of type of reference in bytes.
|
int |
ShortByReference.nativeSize(Runtime runtime)
Gets the native size of type of reference in bytes.
|
int |
DoubleByReference.nativeSize(Runtime runtime)
Gets the native size of type of reference in bytes.
|
int |
FloatByReference.nativeSize(Runtime runtime)
Gets the native size of type of reference in bytes.
|
int |
PointerByReference.nativeSize(Runtime runtime) |
int |
ByReference.nativeSize(Runtime runtime)
Gets the size of the native buffer required to store the value
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractRuntime |
Modifier and Type | Method and Description |
---|---|
Runtime |
LoadedLibrary.getRuntime() |
Runtime |
AbstractMemoryIO.getRuntime() |
Modifier and Type | Method and Description |
---|---|
static AbstractArrayMemoryIO.ArrayIO |
AbstractArrayMemoryIO.ArrayIO.getArrayIO(Runtime runtime) |
Constructor and Description |
---|
AbstractArrayMemoryIO(Runtime runtime,
byte[] buffer) |
AbstractArrayMemoryIO(Runtime runtime,
byte[] buffer,
int offset,
int length) |
AbstractArrayMemoryIO(Runtime runtime,
int size) |
AbstractBufferMemoryIO(Runtime runtime,
ByteBuffer buffer) |
AbstractMemoryIO(Runtime runtime) |
DefaultObjectReferenceManager(Runtime runtime) |
InAccessibleMemoryIO(Runtime runtime) |
IntPointer(Runtime runtime,
int address) |
IntPointer(Runtime runtime,
long address) |
NullMemoryIO(Runtime runtime) |
Modifier and Type | Class and Description |
---|---|
class |
NativeRuntime |
Modifier and Type | Method and Description |
---|---|
Runtime |
AbstractAsmLibraryInterface.getRuntime() |
Runtime |
Provider.getRuntime() |
Modifier and Type | Method and Description |
---|---|
static jnr.ffi.provider.jffi.DirectMemoryIO |
TransientNativeMemory.allocate(Runtime runtime,
int size,
int align,
boolean clear) |
Constructor and Description |
---|
ArrayMemoryIO(Runtime runtime,
int size) |
Copyright © 2014. All rights reserved.