Uses of Class
jnr.ffi.Runtime
Packages that use Runtime
Package
Description
-
Uses of Runtime in jnr.ffi
Modifier and TypeFieldDescriptionprivate final RuntimePointer.runtimeprivate final RuntimeStruct.Info.runtimeprivate final RuntimeStructLayout.runtimestatic final RuntimeRuntime.SingletonHolder.SYSTEM_RUNTIMEModifier and TypeMethodDescriptionstatic RuntimeLibrary.getRuntime(Object library) Deprecated.final RuntimePointer.getRuntime()Gets theRuntimethisPointerinstance belongs to.static RuntimeRuntime.getRuntime(Object library) Returns the runtime associated with the library instance.final RuntimeStruct.getRuntime()final RuntimeStructLayout.getRuntime()static RuntimeRuntime.getSystemRuntime()Gets the global Runtime for the current FFI providerModifier and TypeMethodDescriptionstatic PointerAllocates a new block of java memory and wraps it in aPointeraccessor.static PointerMemory.allocate(Runtime runtime, NativeType type) Allocates a new block of java memory and wraps it in aPointeraccessor.static PointerAllocates a new block of java memory and wraps it in aPointeraccessor.static PointerAllocates a new block of java memory and wraps it in aPointeraccessor.static PointerMemory.allocateDirect(Runtime runtime, int size) Allocates a new block of native memory and wraps it in aPointeraccessor.static PointerMemory.allocateDirect(Runtime runtime, int size, boolean clear) Allocates a new block of native memory and wraps it in aPointeraccessor.static PointerMemory.allocateDirect(Runtime runtime, long size) Allocates a new block of native memory and wraps it in aPointeraccessor.static PointerMemory.allocateDirect(Runtime runtime, long size, boolean clear) Allocates a new block of native memory and wraps it in aPointeraccessor.static PointerMemory.allocateDirect(Runtime runtime, NativeType type) Allocates a new block of native memory and wraps it in aPointeraccessor.static PointerMemory.allocateDirect(Runtime runtime, TypeAlias type) Allocates a new block of native memory and wraps it in aPointeraccessor.static PointerMemory.allocateTemporary(Runtime runtime, NativeType type) Allocates a new block of transient native memory and wraps it in aPointeraccessor.static PointerMemory.allocateTemporary(Runtime runtime, NativeType type, boolean clear) Allocates a new block of transient native memory and wraps it in aPointeraccessor.static PointerMemory.allocateTemporary(Runtime runtime, TypeAlias type) Allocates a new block of transient native memory and wraps it in aPointeraccessor.static <T extends Struct>
T[]static intLastError.getLastError(Runtime runtime) Gets the value of errno from the last native call.abstract booleanRuntime.isCompatible(Runtime other) Indicates whether thisRuntimeinstance is compatible with anotherRuntimeinstance.static <T> ObjectReferenceManager<T> ObjectReferenceManager.newInstance(Runtime runtime) static PointerPointer.newIntPointer(Runtime runtime, long address) Wraps an integer value in an opaquePointerinstance.static voidLastError.setLastError(Runtime runtime, int error) Sets the native errno value.static <T extends Struct>
intGets the size of a Struct type in bytesstatic PointerWraps a native address in aPointerinstance.static PointerWraps a native address in aPointerinstance.static PointerPointer.wrap(Runtime runtime, ByteBuffer buffer) Wraps an existing ByteBuffer in aPointerimplementation so it can be used as a parameter to native functions.ModifierConstructorDescriptionprotectedprotectedCreates a newStruct.protectedCreates a newStruct.protectedprotectedStruct(Runtime runtime, Struct.Alignment alignment) protectedStructLayout(Runtime runtime) Creates a newStructLayout.protectedStructLayout(Runtime runtime, int structSize) protected -
Uses of Runtime in jnr.ffi.byref
Methods in jnr.ffi.byref with parameters of type RuntimeModifier and TypeMethodDescriptionvoidAddressByReference.fromNative(Runtime runtime, Pointer memory, long offset) Copies the address value from native memoryvoidByReference.fromNative(Runtime runtime, Pointer memory, long offset) Copies the java value from native memoryvoidByteByReference.fromNative(Runtime runtime, Pointer buffer, long offset) Copies the Byte value from native memoryvoidDoubleByReference.fromNative(Runtime runtime, Pointer buffer, long offset) Copies the double value from native memoryvoidFloatByReference.fromNative(Runtime runtime, Pointer buffer, long offset) Copies the float value from native memoryvoidIntByReference.fromNative(Runtime runtime, Pointer buffer, long offset) Copies the integer value from native memoryvoidLongLongByReference.fromNative(Runtime runtime, Pointer memory, long offset) Copies the value from native memoryvoidNativeLongByReference.fromNative(Runtime runtime, Pointer memory, long offset) Copies the long value from native memoryvoidNumberByReference.fromNative(Runtime runtime, Pointer memory, long offset) final voidPointerByReference.fromNative(Runtime runtime, Pointer memory, long offset) voidShortByReference.fromNative(Runtime runtime, Pointer buffer, long offset) Copies the short value from native memoryintAddressByReference.nativeSize(Runtime runtime) Gets the native size of type of referenceintByReference.nativeSize(Runtime runtime) Gets the size of the native buffer required to store the valuefinal intByteByReference.nativeSize(Runtime runtime) Gets the native size of type of reference in bytes.final intDoubleByReference.nativeSize(Runtime runtime) Gets the native size of type of reference in bytes.final intFloatByReference.nativeSize(Runtime runtime) Gets the native size of type of reference in bytes.intIntByReference.nativeSize(Runtime runtime) Gets the native size of type of referencefinal intLongLongByReference.nativeSize(Runtime runtime) Gets the native size of type of reference in bytes.final intNativeLongByReference.nativeSize(Runtime runtime) Gets the native size of type of reference in bytes.intNumberByReference.nativeSize(Runtime runtime) final intPointerByReference.nativeSize(Runtime runtime) final intShortByReference.nativeSize(Runtime runtime) Gets the native size of type of reference in bytes.voidCopies the address value to native memoryvoidCopies the java value to native memoryvoidCopies the Byte value to native memoryvoidCopies the double value to native memoryvoidCopies the float value to native memoryvoidCopies the integer value to native memoryvoidCopies the value to native memoryvoidCopies the long value to native memoryvoidfinal voidvoidCopies the short value to native memory -
Uses of Runtime in jnr.ffi.mapper
Fields in jnr.ffi.mapper declared as RuntimeModifier and TypeFieldDescriptionprivate final RuntimeMethodParameterContext.runtimeprivate final RuntimeMethodResultContext.runtimeMethods in jnr.ffi.mapper that return RuntimeModifier and TypeMethodDescriptionFromNativeContext.getRuntime()Gets theRuntimeused for the conversion.MethodParameterContext.getRuntime()MethodResultContext.getRuntime()ToNativeContext.getRuntime()Gets theRuntimeused 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) classARuntimesubclass that throws exceptions for all methodsFields in jnr.ffi.provider declared as RuntimeModifier and TypeFieldDescriptionprivate final RuntimeDefaultObjectReferenceManager.runtimeprivate final RuntimeInvalidProvider.runtimeMethods in jnr.ffi.provider that return RuntimeModifier and TypeMethodDescriptionabstract RuntimeFFIProvider.getRuntime()Gets the defaultRuntimefor this provider.InvalidProvider.getRuntime()LoadedLibrary.getRuntime()Methods in jnr.ffi.provider with parameters of type RuntimeModifier and TypeMethodDescriptionAbstractArrayMemoryIO.ArrayIO.getArrayIO(Runtime runtime) booleanInvalidRuntime.isCompatible(Runtime other) Constructors in jnr.ffi.provider with parameters of type RuntimeModifierConstructorDescriptionprotectedAbstractArrayMemoryIO(Runtime runtime, byte[] buffer) protectedAbstractArrayMemoryIO(Runtime runtime, byte[] buffer, int offset, int length) protectedAbstractArrayMemoryIO(Runtime runtime, int size) AbstractBufferMemoryIO(Runtime runtime, ByteBuffer buffer, long address) protectedAbstractMemoryIO(Runtime runtime, long address, boolean isDirect) DefaultObjectReferenceManager(Runtime runtime) protectedInAccessibleMemoryIO(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 RuntimeCharSequenceArrayParameterConverter.runtimeprotected final RuntimePointer32ArrayParameterConverter.runtimeprotected final RuntimePointer64ArrayParameterConverter.runtimeprotected final RuntimeStructArrayParameterConverter.runtimeMethods in jnr.ffi.provider.converters with parameters of type RuntimeModifier and TypeMethodDescription(package private) static CharSequenceArrayParameterConverter.StringArrayConstructors 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) privateStringArray(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 RuntimeAbstractA64StubCompiler.runtimeprotected final RuntimeAbstractAsmLibraryInterface.runtimeprivate final RuntimeAbstractX86StubCompiler.runtimeprivate final RuntimeAsmBuilder.runtimeprivate final RuntimeAsmStructByReferenceFromNativeConverter.runtimeprivate final RuntimeClosureFromNativeConverter.ProxyConverter.runtimeprotected final RuntimeDefaultInvokerFactory.DefaultInvoker.runtimeprivate final RuntimeDefaultInvokerFactory.runtimeprivate final RuntimeDefaultInvokerFactory.VariadicInvoker.runtimeprivate final RuntimeNativeClosureFactory.runtimeprivate final RuntimeNativeClosureManager.runtimeprivate final RuntimeNativeClosureProxy.Factory.runtimeprotected final RuntimeNativeClosureProxy.runtimeprivate final RuntimeNativeMemoryManager.runtimeprivate final RuntimeReflectionLibraryLoader.GetRuntimeInvoker.runtimeprivate final RuntimeReflectionLibraryLoader.LazyLoader.runtimeprivate final RuntimeSimpleNativeContext.runtimeprivate final RuntimeVariableAccessorGenerator.runtimeMethods in jnr.ffi.provider.jffi that return RuntimeModifier and TypeMethodDescriptionfinal RuntimeAbstractA64StubCompiler.getRuntime()final RuntimeAbstractAsmLibraryInterface.getRuntime()final RuntimeAbstractX86StubCompiler.getRuntime()AsmBuilder.getRuntime()protected final RuntimeAsmStructByReferenceFromNativeConverter.getRuntime()final RuntimeProvider.getRuntime()final RuntimeSimpleNativeContext.getRuntime()Methods in jnr.ffi.provider.jffi with parameters of type RuntimeModifier and TypeMethodDescriptionstatic DirectMemoryIOstatic DirectMemoryIO(package private) VariableVariableAccessorGenerator.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 VariableReflectionVariableAccessorGenerator.createVariableAccessor(Runtime runtime, Method method, long symbolAddress, SignatureTypeMapper typeMapper, Collection<Annotation> annotations) private static voidClosureFromNativeConverter.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 NativeTypeInvokerUtil.getMethodParameterNativeType(Runtime runtime, Class parameterClass, Collection<Annotation> annotations) (package private) static NativeTypeInvokerUtil.getMethodResultNativeType(Runtime runtime, Class resultClass, Collection<Annotation> annotations) (package private) static FromNativeTypeClosureUtil.getParameterType(Runtime runtime, Method m, int idx, SignatureTypeMapper typeMapper) private static ParameterTypeInvokerUtil.getParameterType(Runtime runtime, Class type, Collection<Annotation> annotations, ToNativeConverter toNativeConverter, ToNativeContext toNativeContext) private static ParameterTypeInvokerUtil.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 ToNativeTypeClosureUtil.getResultType(Runtime runtime, Method m, SignatureTypeMapper typeMapper) (package private) static ResultTypeInvokerUtil.getResultType(Runtime runtime, Class type, Collection<Annotation> annotations, FromNativeConverter fromNativeConverter, FromNativeContext fromNativeContext) (package private) static ResultTypeInvokerUtil.getResultType(Runtime runtime, Class type, Collection<Annotation> annotations, FromNativeType fromNativeType, FromNativeContext fromNativeContext) (package private) static TypeTypes.getType(Runtime runtime, Class javaType, Collection<Annotation> annotations) final ObjectDefaultInvokerFactory.BooleanInvoker.invoke(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) final ObjectDefaultInvokerFactory.ConvertingInvoker.invoke(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) final ObjectDefaultInvokerFactory.Float32Invoker.invoke(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) final ObjectDefaultInvokerFactory.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 ObjectDefaultInvokerFactory.IntInvoker.invoke(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) final ObjectDefaultInvokerFactory.LongInvoker.invoke(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) final ObjectDefaultInvokerFactory.PointerInvoker.invoke(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) final ObjectDefaultInvokerFactory.VoidInvoker.invoke(Runtime runtime, com.kenai.jffi.Function function, com.kenai.jffi.HeapInvocationBuffer buffer) booleanNativeRuntime.isCompatible(Runtime other) private static TypeTypes.lookupAliasedType(Runtime runtime, Collection<Annotation> annotations) private static TypeTypes.lookupAndCacheType(Runtime runtime, Class javaType, Collection<Annotation> annotations) (package private) static TypeTypes.lookupType(Runtime runtime, Class type, Collection<Annotation> annotations) private static FromNativeConverterClosureFromNativeConverter.newClosureConverter(Runtime runtime, AsmClassLoader classLoader, Class closureClass, SignatureTypeMapper typeMapper) (package private) static <T> NativeClosureFactoryNativeClosureFactory.newClosureFactory(Runtime runtime, Class<T> closureClass, SignatureTypeMapper typeMapper, AsmClassLoader classLoader) static StubCompilerStubCompiler.newCompiler(Runtime runtime) (package private) static CompositeTypeMapperLibraryLoader.newCompositeTypeMapper(Runtime runtime, AsmClassLoader classLoader, SignatureTypeMapper typeMapper, CompositeTypeMapper closureTypeMapper) (package private) static PointerMemoryUtil.newPointer(Runtime runtime, int ptr) (package private) static PointerMemoryUtil.newPointer(Runtime runtime, long ptr) (package private) static PointerMemoryUtil.newPointer(Runtime runtime, long ptr, long size) (package private) static NativeClosureProxy.FactoryNativeClosureProxy.newProxyFactory(Runtime runtime, Method callMethod, ToNativeType resultType, FromNativeType[] parameterTypes, AsmClassLoader classLoader) (package private) static AsmStructByReferenceFromNativeConverterAsmStructByReferenceFromNativeConverter.newStructByReferenceConverter(Runtime runtime, Class<? extends Struct> structClass, int flags, AsmClassLoader classLoader) static PointerAsmRuntime.pointerValue(int ptr, Runtime runtime) static PointerAsmRuntime.pointerValue(long ptr, Runtime runtime) Constructors in jnr.ffi.provider.jffi with parameters of type RuntimeModifierConstructorDescriptionprotectedAbstractA64StubCompiler(Runtime runtime) AbstractAsmLibraryInterface(Runtime runtime, NativeLibrary library) protectedAbstractClosurePointer(Runtime runtime, long functionAddress) protectedAbstractX86StubCompiler(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) protectedAsmStructByReferenceFromNativeConverter(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) privateGetRuntimeInvoker(Runtime runtime) protectedNativeClosureFactory(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)
Runtime.getRuntime(Object)