Uses of Class
jnr.ffi.Runtime
-
Packages that use Runtime Package Description jnr.ffi jnr.ffi.byref jnr.ffi.mapper jnr.ffi.provider jnr.ffi.provider.converters jnr.ffi.provider.jffi -
-
Uses of Runtime in jnr.ffi
Methods in jnr.ffi that return Runtime Modifier and Type Method Description static RuntimeLibrary. getRuntime(Object library)Deprecated.RuntimePointer. getRuntime()Gets theRuntimethisPointerinstance belongs to.static RuntimeRuntime. getRuntime(Object library)Returns the runtime associated with the library instance.RuntimeStruct. getRuntime()RuntimeStructLayout. getRuntime()static RuntimeRuntime. getSystemRuntime()Gets the global Runtime for the current FFI providerMethods in jnr.ffi with parameters of type Runtime Modifier and Type Method Description static PointerMemory. allocate(Runtime runtime, int size)Allocates 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 PointerMemory. allocate(Runtime runtime, Type type)Allocates a new block of java memory and wraps it in aPointeraccessor.static PointerMemory. allocate(Runtime runtime, TypeAlias type)Allocates 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[]Struct. arrayOf(Runtime runtime, Class<T> type, int length)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 PointerPointer. wrap(Runtime runtime, long address)Wraps a native address in aPointerinstance.static PointerPointer. wrap(Runtime runtime, long address, long size)Wraps 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.Constructors in jnr.ffi with parameters of type Runtime Constructor Description Pointer(Runtime runtime, long address, boolean direct)Struct(Runtime runtime)Creates a newStruct.Struct(Runtime runtime, boolean isUnion)Creates a newStruct.Struct(Runtime runtime, Struct enclosing)Struct(Runtime runtime, Struct.Alignment alignment)StructLayout(Runtime runtime)Creates a newStructLayout.StructLayout(Runtime runtime, int structSize)Union(Runtime runtime) -
Uses of Runtime in jnr.ffi.byref
Methods in jnr.ffi.byref with parameters of type Runtime Modifier and Type Method Description voidAddressByReference. 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)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 valueintByteByReference. nativeSize(Runtime runtime)Gets the native size of type of reference in bytes.intDoubleByReference. nativeSize(Runtime runtime)Gets the native size of type of reference in bytes.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 referenceintLongLongByReference. nativeSize(Runtime runtime)Gets the native size of type of reference in bytes.intNativeLongByReference. nativeSize(Runtime runtime)Gets the native size of type of reference in bytes.intNumberByReference. nativeSize(Runtime runtime)intPointerByReference. nativeSize(Runtime runtime)intShortByReference. nativeSize(Runtime runtime)Gets the native size of type of reference in bytes.voidAddressByReference. toNative(Runtime runtime, Pointer memory, long offset)Copies the address value to native memoryvoidByReference. toNative(Runtime runtime, Pointer memory, long offset)Copies the java value to native memoryvoidByteByReference. toNative(Runtime runtime, Pointer buffer, long offset)Copies the Byte value to native memoryvoidDoubleByReference. toNative(Runtime runtime, Pointer buffer, long offset)Copies the double value to native memoryvoidFloatByReference. toNative(Runtime runtime, Pointer buffer, long offset)Copies the float value to native memoryvoidIntByReference. toNative(Runtime runtime, Pointer buffer, long offset)Copies the integer value to native memoryvoidLongLongByReference. toNative(Runtime runtime, Pointer memory, long offset)Copies the value to native memoryvoidNativeLongByReference. toNative(Runtime runtime, Pointer memory, long offset)Copies the long value to native memoryvoidNumberByReference. toNative(Runtime runtime, Pointer memory, long offset)voidPointerByReference. toNative(Runtime runtime, Pointer memory, long offset)voidShortByReference. toNative(Runtime runtime, Pointer buffer, long offset)Copies the short value to native memory -
Uses of Runtime in jnr.ffi.mapper
Methods in jnr.ffi.mapper that return Runtime Modifier and Type Method Description RuntimeFromNativeContext. getRuntime()Gets theRuntimeused for the conversion.RuntimeMethodParameterContext. getRuntime()RuntimeMethodResultContext. getRuntime()RuntimeToNativeContext. getRuntime()Gets theRuntimeused for the conversion.Constructors in jnr.ffi.mapper with parameters of type Runtime Constructor Description MethodParameterContext(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.provider Modifier and Type Class Description classAbstractRuntimeMethods in jnr.ffi.provider that return Runtime Modifier and Type Method Description abstract RuntimeFFIProvider. getRuntime()Gets the defaultRuntimefor this provider.RuntimeLoadedLibrary. getRuntime()Methods in jnr.ffi.provider with parameters of type Runtime Modifier and Type Method Description static AbstractArrayMemoryIO.ArrayIOAbstractArrayMemoryIO.ArrayIO. getArrayIO(Runtime runtime)Constructors in jnr.ffi.provider with parameters of type Runtime Constructor 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, long address)AbstractMemoryIO(Runtime runtime, long address, boolean isDirect)DefaultObjectReferenceManager(Runtime runtime)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 Runtime Modifier and Type Field Description protected RuntimePointer32ArrayParameterConverter. runtimeprotected RuntimePointer64ArrayParameterConverter. runtimeprotected RuntimeStructArrayParameterConverter. runtimeConstructors in jnr.ffi.provider.converters with parameters of type Runtime Constructor Description Out(Runtime runtime, int parameterFlags) -
Uses of Runtime in jnr.ffi.provider.jffi
Subclasses of Runtime in jnr.ffi.provider.jffi Modifier and Type Class Description classNativeRuntimeFields in jnr.ffi.provider.jffi declared as Runtime Modifier and Type Field Description protected RuntimeAbstractAsmLibraryInterface. runtimeprotected RuntimeNativeClosureProxy. runtimeMethods in jnr.ffi.provider.jffi that return Runtime Modifier and Type Method Description RuntimeAbstractAsmLibraryInterface. getRuntime()protected RuntimeAsmStructByReferenceFromNativeConverter. getRuntime()RuntimeProvider. getRuntime()RuntimeSimpleNativeContext. getRuntime()Methods in jnr.ffi.provider.jffi with parameters of type Runtime Modifier and Type Method Description static jnr.ffi.provider.jffi.DirectMemoryIOTransientNativeMemory. allocate(Runtime runtime, int size, int align, boolean clear)static jnr.ffi.provider.jffi.DirectMemoryIOTransientNativeMemory. allocate(Runtime runtime, long size, int align, boolean clear)static FromNativeConverter<?,Pointer>ClosureFromNativeConverter. getInstance(Runtime runtime, SignatureType type, jnr.ffi.provider.jffi.AsmClassLoader classLoader, SignatureTypeMapper typeMapper)booleanNativeRuntime. isCompatible(Runtime other)static PointerAsmRuntime. pointerValue(int ptr, Runtime runtime)static PointerAsmRuntime. pointerValue(long ptr, Runtime runtime)Constructors in jnr.ffi.provider.jffi with parameters of type Runtime Constructor Description AbstractAsmLibraryInterface(Runtime runtime, NativeLibrary library)AbstractClosurePointer(Runtime runtime, long functionAddress)ArrayMemoryIO(Runtime runtime, byte[] bytes, int off, int len)ArrayMemoryIO(Runtime runtime, int size)AsmStructByReferenceFromNativeConverter(Runtime runtime, int flags)ByteBufferMemoryIO(Runtime runtime, ByteBuffer buffer)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)
-