Uses of Class
jnr.ffi.Runtime
Packages that use Runtime
Package
Description
-
Uses of Runtime in jnr.ffi
Modifier and TypeFieldDescriptionprivate final Runtime
Pointer.runtime
private final Runtime
Struct.Info.runtime
private final Runtime
StructLayout.runtime
static final Runtime
Runtime.SingletonHolder.SYSTEM_RUNTIME
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
Fields in jnr.ffi.mapper declared as RuntimeModifier and TypeFieldDescriptionprivate final Runtime
MethodParameterContext.runtime
private final Runtime
MethodResultContext.runtime
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.providerModifier and TypeClassDescriptionclass
(package private) class
ARuntime
subclass that throws exceptions for all methodsFields in jnr.ffi.provider declared as RuntimeModifier and TypeFieldDescriptionprivate final Runtime
DefaultObjectReferenceManager.runtime
private final Runtime
InvalidProvider.runtime
Methods in jnr.ffi.provider that return RuntimeModifier and TypeMethodDescriptionabstract Runtime
FFIProvider.getRuntime()
Gets the defaultRuntime
for this provider.InvalidProvider.getRuntime()
LoadedLibrary.getRuntime()
Methods in jnr.ffi.provider with parameters of type RuntimeModifier and TypeMethodDescriptionAbstractArrayMemoryIO.ArrayIO.getArrayIO
(Runtime runtime) boolean
InvalidRuntime.isCompatible
(Runtime other) Constructors 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) ObjectReference
(Runtime runtime, long address, Object referent) -
Uses of Runtime in jnr.ffi.provider.converters
Fields in jnr.ffi.provider.converters declared as RuntimeModifier and TypeFieldDescriptionprivate final Runtime
CharSequenceArrayParameterConverter.runtime
protected final Runtime
Pointer32ArrayParameterConverter.runtime
protected final Runtime
Pointer64ArrayParameterConverter.runtime
protected final Runtime
StructArrayParameterConverter.runtime
Methods in jnr.ffi.provider.converters with parameters of type RuntimeModifier and TypeMethodDescription(package private) static CharSequenceArrayParameterConverter.StringArray
Constructors in jnr.ffi.provider.converters with parameters of type RuntimeModifierConstructorDescription(package private)
CharSequenceArrayParameterConverter
(Runtime runtime, int parameterFlags) (package private)
(package private)
(package private)
(package private)
Pointer32ArrayParameterConverter
(Runtime runtime, int parameterFlags) (package private)
Pointer64ArrayParameterConverter
(Runtime runtime, int parameterFlags) private
StringArray
(Runtime runtime, Pointer memory, int capacity) (package private)
StructArrayParameterConverter
(Runtime runtime, int parameterFlags) -
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 TypeFieldDescriptionprivate final Runtime
AbstractA64StubCompiler.runtime
protected final Runtime
AbstractAsmLibraryInterface.runtime
private final Runtime
AbstractX86StubCompiler.runtime
private final Runtime
AsmBuilder.runtime
private final Runtime
AsmStructByReferenceFromNativeConverter.runtime
private final Runtime
ClosureFromNativeConverter.ProxyConverter.runtime
protected final Runtime
DefaultInvokerFactory.DefaultInvoker.runtime
private final Runtime
DefaultInvokerFactory.runtime
private final Runtime
DefaultInvokerFactory.VariadicInvoker.runtime
private final Runtime
NativeClosureFactory.runtime
private final Runtime
NativeClosureManager.runtime
private final Runtime
NativeClosureProxy.Factory.runtime
protected final Runtime
NativeClosureProxy.runtime
private final Runtime
NativeMemoryManager.runtime
private final Runtime
ReflectionLibraryLoader.GetRuntimeInvoker.runtime
private final Runtime
ReflectionLibraryLoader.LazyLoader.runtime
private final Runtime
SimpleNativeContext.runtime
private final Runtime
VariableAccessorGenerator.runtime
Methods in jnr.ffi.provider.jffi that return RuntimeModifier and TypeMethodDescriptionfinal Runtime
AbstractA64StubCompiler.getRuntime()
final Runtime
AbstractAsmLibraryInterface.getRuntime()
final Runtime
AbstractX86StubCompiler.getRuntime()
AsmBuilder.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 DirectMemoryIO
static DirectMemoryIO
(package private) Variable
VariableAccessorGenerator.buildVariableAccessor
(Runtime runtime, long address, Class interfaceClass, Class javaType, Collection<Annotation> annotations, ToNativeConverter toNativeConverter, FromNativeConverter fromNativeConverter, AsmClassLoader classLoader) private FromNativeConverter<? extends Struct,
Pointer> StructByReferenceResultConverterFactory.createConverter
(Runtime runtime, Class<? extends Struct> structClass, FromNativeContext fromNativeContext) (package private) static Variable
ReflectionVariableAccessorGenerator.createVariableAccessor
(Runtime runtime, Method method, long symbolAddress, SignatureTypeMapper typeMapper, Collection<Annotation> annotations) private static void
ClosureFromNativeConverter.generateInvocation
(Runtime runtime, AsmBuilder builder, Class closureClass, SignatureTypeMapper typeMapper) static FromNativeConverter<?,
Pointer> ClosureFromNativeConverter.getInstance
(Runtime runtime, SignatureType type, AsmClassLoader classLoader, SignatureTypeMapper typeMapper) (package private) static NativeType
InvokerUtil.getMethodParameterNativeType
(Runtime runtime, Class parameterClass, Collection<Annotation> annotations) (package private) static NativeType
InvokerUtil.getMethodResultNativeType
(Runtime runtime, Class resultClass, Collection<Annotation> annotations) (package private) static FromNativeType
ClosureUtil.getParameterType
(Runtime runtime, Method m, int idx, SignatureTypeMapper typeMapper) private static ParameterType
InvokerUtil.getParameterType
(Runtime runtime, Class type, Collection<Annotation> annotations, ToNativeConverter toNativeConverter, ToNativeContext toNativeContext) private static ParameterType
InvokerUtil.getParameterType
(Runtime runtime, Class type, Collection<Annotation> annotations, ToNativeType toNativeType, ToNativeContext toNativeContext) (package private) static ParameterType[]
InvokerUtil.getParameterTypes
(Runtime runtime, SignatureTypeMapper typeMapper, Method m) (package private) static ToNativeType
ClosureUtil.getResultType
(Runtime runtime, Method m, SignatureTypeMapper typeMapper) (package private) static ResultType
InvokerUtil.getResultType
(Runtime runtime, Class type, Collection<Annotation> annotations, FromNativeConverter fromNativeConverter, FromNativeContext fromNativeContext) (package private) static ResultType
InvokerUtil.getResultType
(Runtime runtime, Class type, Collection<Annotation> annotations, FromNativeType fromNativeType, FromNativeContext fromNativeContext) (package private) static Type
Types.getType
(Runtime runtime, Class javaType, Collection<Annotation> annotations) final Object
DefaultInvokerFactory.BooleanInvoker.invoke
(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) final Object
DefaultInvokerFactory.ConvertingInvoker.invoke
(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) final Object
DefaultInvokerFactory.Float32Invoker.invoke
(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) final Object
DefaultInvokerFactory.Float64Invoker.invoke
(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) DefaultInvokerFactory.FunctionInvoker.invoke
(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) final Object
DefaultInvokerFactory.IntInvoker.invoke
(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) final Object
DefaultInvokerFactory.LongInvoker.invoke
(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) final Object
DefaultInvokerFactory.PointerInvoker.invoke
(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) final Object
DefaultInvokerFactory.VoidInvoker.invoke
(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) boolean
NativeRuntime.isCompatible
(Runtime other) private static Type
Types.lookupAliasedType
(Runtime runtime, Collection<Annotation> annotations) private static Type
Types.lookupAndCacheType
(Runtime runtime, Class javaType, Collection<Annotation> annotations) (package private) static Type
Types.lookupType
(Runtime runtime, Class type, Collection<Annotation> annotations) private static FromNativeConverter
ClosureFromNativeConverter.newClosureConverter
(Runtime runtime, AsmClassLoader classLoader, Class closureClass, SignatureTypeMapper typeMapper) (package private) static <T> NativeClosureFactory
NativeClosureFactory.newClosureFactory
(Runtime runtime, Class<T> closureClass, SignatureTypeMapper typeMapper, AsmClassLoader classLoader) static StubCompiler
StubCompiler.newCompiler
(Runtime runtime) (package private) static CompositeTypeMapper
LibraryLoader.newCompositeTypeMapper
(Runtime runtime, AsmClassLoader classLoader, SignatureTypeMapper typeMapper, CompositeTypeMapper closureTypeMapper) (package private) static Pointer
MemoryUtil.newPointer
(Runtime runtime, int ptr) (package private) static Pointer
MemoryUtil.newPointer
(Runtime runtime, long ptr) (package private) static Pointer
MemoryUtil.newPointer
(Runtime runtime, long ptr, long size) (package private) static NativeClosureProxy.Factory
NativeClosureProxy.newProxyFactory
(Runtime runtime, Method callMethod, ToNativeType resultType, FromNativeType[] parameterTypes, AsmClassLoader classLoader) (package private) static AsmStructByReferenceFromNativeConverter
AsmStructByReferenceFromNativeConverter.newStructByReferenceConverter
(Runtime runtime, Class<? extends Struct> structClass, int flags, AsmClassLoader classLoader) 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 RuntimeModifierConstructorDescriptionprotected
AbstractA64StubCompiler
(Runtime runtime) AbstractAsmLibraryInterface
(Runtime runtime, NativeLibrary library) protected
AbstractClosurePointer
(Runtime runtime, long functionAddress) protected
AbstractX86StubCompiler
(Runtime runtime) AllocatedDirectMemoryIO
(Runtime runtime, long size, boolean clear) (package private)
ARM_64StubCompiler
(Runtime runtime) ArrayMemoryIO
(Runtime runtime, byte[] bytes, int off, int len) ArrayMemoryIO
(Runtime runtime, int size) (package private)
AsmBuilder
(Runtime runtime, String classNamePath, org.objectweb.asm.ClassVisitor classVisitor, AsmClassLoader classLoader) protected
AsmStructByReferenceFromNativeConverter
(Runtime runtime, int flags) ByteBufferMemoryIO
(Runtime runtime, ByteBuffer buffer) (package private)
DefaultInvoker
(Runtime runtime, NativeLibrary nativeLibrary, com.kenai.jffi.Function function, DefaultInvokerFactory.FunctionInvoker invoker, DefaultInvokerFactory.Marshaller[] marshallers) DefaultInvokerFactory
(Runtime runtime, NativeLibrary library, SignatureTypeMapper typeMapper, FunctionMapper functionMapper, CallingConvention libraryCallingConvention, Map<LibraryOption, ?> libraryOptions, boolean libraryIsSynchronized) (package private)
DirectMemoryIO
(Runtime runtime, int address) (package private)
DirectMemoryIO
(Runtime runtime, long address) (package private)
Factory
(Runtime runtime, Constructor<? extends NativeClosureProxy> constructor, Method invokeMethod, Object[] objectFields) private
GetRuntimeInvoker
(Runtime runtime) protected
NativeClosureFactory
(Runtime runtime, com.kenai.jffi.CallContext callContext, NativeClosureProxy.Factory closureProxyFactory) (package private)
NativeClosureManager
(Runtime runtime, SignatureTypeMapper typeMapper) NativeClosurePointer
(Runtime runtime, com.kenai.jffi.Closure.Handle handle, NativeClosureProxy proxy) ProxyConverter
(Runtime runtime, Constructor closureConstructor, Object[] initFields) (package private)
SimpleNativeContext
(Runtime runtime, Collection<Annotation> annotations) (package private)
TransientNativeMemory
(Runtime runtime, TransientNativeMemory.Sentinel sentinel, long address, long size) VariableAccessorGenerator
(Runtime runtime) (package private)
VariadicInvoker
(Runtime runtime, DefaultInvokerFactory.FunctionInvoker functionInvoker, SignatureTypeMapper typeMapper, ParameterType[] fixedParameterTypes, long functionAddress, SigType resultType, boolean requiresErrno, CallingConvention callingConvention) (package private)
X86_32StubCompiler
(Runtime runtime) (package private)
X86_64StubCompiler
(Runtime runtime)
getRuntime(Object)