Uses of Class
jnr.ffi.Runtime
Packages that use Runtime
Package
Description
-
Uses of Runtime in jnr.ffi
Modifier and TypeMethodDescriptionstatic Runtime
Library.getRuntime
(Object library) Deprecated.final Runtime
Pointer.getRuntime()
Gets theRuntime
thisPointer
instance belongs to.static Runtime
Runtime.getRuntime
(Object library) Returns the runtime associated with the library instance.final Runtime
Struct.getRuntime()
final Runtime
StructLayout.getRuntime()
static Runtime
Runtime.getSystemRuntime()
Gets the global Runtime for the current FFI providerModifier and TypeMethodDescriptionstatic Pointer
Allocates a new block of java memory and wraps it in aPointer
accessor.static Pointer
Memory.allocate
(Runtime runtime, NativeType type) Allocates a new block of java memory and wraps it in aPointer
accessor.static Pointer
Allocates a new block of java memory and wraps it in aPointer
accessor.static Pointer
Allocates a new block of java memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateDirect
(Runtime runtime, int size) Allocates a new block of native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateDirect
(Runtime runtime, int size, boolean clear) Allocates a new block of native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateDirect
(Runtime runtime, long size) Allocates a new block of native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateDirect
(Runtime runtime, long size, boolean clear) Allocates a new block of native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateDirect
(Runtime runtime, NativeType type) Allocates a new block of native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateDirect
(Runtime runtime, TypeAlias type) Allocates a new block of native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateTemporary
(Runtime runtime, NativeType type) Allocates a new block of transient native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateTemporary
(Runtime runtime, NativeType type, boolean clear) Allocates a new block of transient native memory and wraps it in aPointer
accessor.static Pointer
Memory.allocateTemporary
(Runtime runtime, TypeAlias type) Allocates a new block of transient native memory and wraps it in aPointer
accessor.static <T extends Struct>
T[]static int
LastError.getLastError
(Runtime runtime) Gets the value of errno from the last native call.abstract boolean
Runtime.isCompatible
(Runtime other) Indicates whether thisRuntime
instance is compatible with anotherRuntime
instance.static <T> ObjectReferenceManager
<T> ObjectReferenceManager.newInstance
(Runtime runtime) static Pointer
Pointer.newIntPointer
(Runtime runtime, long address) Wraps an integer value in an opaquePointer
instance.static void
LastError.setLastError
(Runtime runtime, int error) Sets the native errno value.static <T extends Struct>
intGets the size of a Struct type in bytesstatic Pointer
Wraps a native address in aPointer
instance.static Pointer
Wraps a native address in aPointer
instance.static Pointer
Pointer.wrap
(Runtime runtime, ByteBuffer buffer) Wraps an existing ByteBuffer in aPointer
implementation so it can be used as a parameter to native functions.ModifierConstructorDescriptionprotected
protected
Creates a newStruct
.protected
Creates a newStruct
.protected
protected
Struct
(Runtime runtime, Struct.Alignment alignment) protected
StructLayout
(Runtime runtime) Creates a newStructLayout
.protected
StructLayout
(Runtime runtime, int structSize) protected
-
Uses of Runtime in jnr.ffi.byref
Methods in jnr.ffi.byref with parameters of type RuntimeModifier and TypeMethodDescriptionvoid
AddressByReference.fromNative
(Runtime runtime, Pointer memory, long offset) Copies the address value from native memoryvoid
ByReference.fromNative
(Runtime runtime, Pointer memory, long offset) Copies the java value from native memoryvoid
ByteByReference.fromNative
(Runtime runtime, Pointer buffer, long offset) Copies the Byte value from native memoryvoid
DoubleByReference.fromNative
(Runtime runtime, Pointer buffer, long offset) Copies the double value from native memoryvoid
FloatByReference.fromNative
(Runtime runtime, Pointer buffer, long offset) Copies the float value from native memoryvoid
IntByReference.fromNative
(Runtime runtime, Pointer buffer, long offset) Copies the integer value from native memoryvoid
LongLongByReference.fromNative
(Runtime runtime, Pointer memory, long offset) Copies the value from native memoryvoid
NativeLongByReference.fromNative
(Runtime runtime, Pointer memory, long offset) Copies the long value from native memoryvoid
NumberByReference.fromNative
(Runtime runtime, Pointer memory, long offset) final void
PointerByReference.fromNative
(Runtime runtime, Pointer memory, long offset) void
ShortByReference.fromNative
(Runtime runtime, Pointer buffer, long offset) Copies the short value from native memoryint
AddressByReference.nativeSize
(Runtime runtime) Gets the native size of type of referenceint
ByReference.nativeSize
(Runtime runtime) Gets the size of the native buffer required to store the valuefinal int
ByteByReference.nativeSize
(Runtime runtime) Gets the native size of type of reference in bytes.final int
DoubleByReference.nativeSize
(Runtime runtime) Gets the native size of type of reference in bytes.final int
FloatByReference.nativeSize
(Runtime runtime) Gets the native size of type of reference in bytes.int
IntByReference.nativeSize
(Runtime runtime) Gets the native size of type of referencefinal int
LongLongByReference.nativeSize
(Runtime runtime) Gets the native size of type of reference in bytes.final int
NativeLongByReference.nativeSize
(Runtime runtime) Gets the native size of type of reference in bytes.int
NumberByReference.nativeSize
(Runtime runtime) final int
PointerByReference.nativeSize
(Runtime runtime) final int
ShortByReference.nativeSize
(Runtime runtime) Gets the native size of type of reference in bytes.void
Copies the address value to native memoryvoid
Copies the java value to native memoryvoid
Copies the Byte value to native memoryvoid
Copies the double value to native memoryvoid
Copies the float value to native memoryvoid
Copies the integer value to native memoryvoid
Copies the value to native memoryvoid
Copies the long value to native memoryvoid
final void
void
Copies the short value to native memory -
Uses of Runtime in jnr.ffi.mapper
Methods in jnr.ffi.mapper that return RuntimeModifier and TypeMethodDescriptionFromNativeContext.getRuntime()
Gets theRuntime
used for the conversion.MethodParameterContext.getRuntime()
MethodResultContext.getRuntime()
ToNativeContext.getRuntime()
Gets theRuntime
used for the conversion.Constructors in jnr.ffi.mapper with parameters of type RuntimeModifierConstructorDescriptionMethodParameterContext
(Runtime runtime, Method method, int parameterIndex) MethodParameterContext
(Runtime runtime, Method method, int parameterIndex, Annotation[] annotationArray) MethodParameterContext
(Runtime runtime, Method method, int parameterIndex, Collection<Annotation> annotations) MethodResultContext
(Runtime runtime, Method method) -
Uses of Runtime in jnr.ffi.provider
Subclasses of Runtime in jnr.ffi.providerMethods in jnr.ffi.provider that return RuntimeModifier and TypeMethodDescriptionabstract Runtime
FFIProvider.getRuntime()
Gets the defaultRuntime
for this provider.LoadedLibrary.getRuntime()
Methods in jnr.ffi.provider with parameters of type RuntimeConstructors in jnr.ffi.provider with parameters of type RuntimeModifierConstructorDescriptionprotected
AbstractArrayMemoryIO
(Runtime runtime, byte[] buffer) protected
AbstractArrayMemoryIO
(Runtime runtime, byte[] buffer, int offset, int length) protected
AbstractArrayMemoryIO
(Runtime runtime, int size) AbstractBufferMemoryIO
(Runtime runtime, ByteBuffer buffer, long address) protected
AbstractMemoryIO
(Runtime runtime, long address, boolean isDirect) DefaultObjectReferenceManager
(Runtime runtime) protected
InAccessibleMemoryIO
(Runtime runtime, long address, boolean isDirect) IntPointer
(Runtime runtime, int address) IntPointer
(Runtime runtime, long address) NullMemoryIO
(Runtime runtime) -
Uses of Runtime in jnr.ffi.provider.converters
Fields in jnr.ffi.provider.converters declared as RuntimeModifier and TypeFieldDescriptionprotected final Runtime
Pointer32ArrayParameterConverter.runtime
protected final Runtime
Pointer64ArrayParameterConverter.runtime
protected final Runtime
StructArrayParameterConverter.runtime
Constructors in jnr.ffi.provider.converters with parameters of type Runtime -
Uses of Runtime in jnr.ffi.provider.jffi
Subclasses of Runtime in jnr.ffi.provider.jffiFields in jnr.ffi.provider.jffi declared as RuntimeModifier and TypeFieldDescriptionprotected final Runtime
AbstractAsmLibraryInterface.runtime
protected final Runtime
NativeClosureProxy.runtime
Methods in jnr.ffi.provider.jffi that return RuntimeModifier and TypeMethodDescriptionfinal Runtime
AbstractAsmLibraryInterface.getRuntime()
protected final Runtime
AsmStructByReferenceFromNativeConverter.getRuntime()
final Runtime
Provider.getRuntime()
final Runtime
SimpleNativeContext.getRuntime()
Methods in jnr.ffi.provider.jffi with parameters of type RuntimeModifier and TypeMethodDescriptionstatic jnr.ffi.provider.jffi.DirectMemoryIO
static jnr.ffi.provider.jffi.DirectMemoryIO
static FromNativeConverter
<?, Pointer> ClosureFromNativeConverter.getInstance
(Runtime runtime, SignatureType type, jnr.ffi.provider.jffi.AsmClassLoader classLoader, SignatureTypeMapper typeMapper) boolean
NativeRuntime.isCompatible
(Runtime other) static Pointer
AsmRuntime.pointerValue
(int ptr, Runtime runtime) static Pointer
AsmRuntime.pointerValue
(long ptr, Runtime runtime) Constructors in jnr.ffi.provider.jffi with parameters of type RuntimeModifierConstructorDescriptionAbstractAsmLibraryInterface
(Runtime runtime, NativeLibrary library) protected
AbstractClosurePointer
(Runtime runtime, long functionAddress) ArrayMemoryIO
(Runtime runtime, byte[] bytes, int off, int len) ArrayMemoryIO
(Runtime runtime, int size) protected
AsmStructByReferenceFromNativeConverter
(Runtime runtime, int flags) ByteBufferMemoryIO
(Runtime runtime, ByteBuffer buffer) protected
NativeClosureFactory
(Runtime runtime, com.kenai.jffi.CallContext callContext, jnr.ffi.provider.jffi.NativeClosureProxy.Factory closureProxyFactory) ProxyConverter
(Runtime runtime, Constructor closureConstructor, Object[] initFields) VariableAccessorGenerator
(Runtime runtime)
getRuntime(Object)