| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final boolean | |
| private static final MethodType |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static native int | |
| private static native int | |
| private static void | |
| pack-priv static MemorySegment | Returns: the created upcall stuba pointer to a cif, MethodHandle ffi_cif structa method handle that points to the target function target, Arena the scope to which to attach the created upcall stub arena)Create an upcallStub-style closure. |
| private static native int | |
| pack-priv static int | |
| pack-priv static void | doDowncall(MemorySegment
a pointer to a cif, MemorySegment ffi_cif structthe address of the target function target, MemorySegment a pointer to a buffer into which the return value shall be written, or retPtr, MemorySegment null if the target
function does not return a valuea pointer to an array of pointers, which each point to an argument value argPtrs, Object captureStateHeapBase, MemorySegment a pointer to a buffer into which captured state is written, or capturedState, int null if no state is
to be capturedthe bit mask indicating which state to capture capturedStateMask, Object[] heapBases, int numArgs)Do a libffi based downcall. |
| private static native void | doDowncall(long cif, long fn, long rvalue, long avalues, Object captureStateHeapBase, long capturedState, int capturedStateMask, Object[] heapBases, int numArgs)
|
| pack-priv static int | |
| pack-priv static MemorySegment | |
| private static void | |
| private static native int | |
| private static native int | |
| private static native int | |
| private static native int | |
| private static native int | |
| private static native int | |
| private static native int | |
| private static native int | |
| private static native long | |
| private static native long | |
| private static native long | |
| private static native long | |
| private static native long | |
| private static native long | |
| private static native long | |
| private static native short | |
| private static native long | |
| private static native long | |
| private static native long | |
| private static native long | |
| private static native long | |
| pack-priv static MemorySegment | |
| private static native void | |
| pack-priv static void | getStructOffsets(MemorySegment
a pointer to an structType, MemorySegment ffi_type representing a structa pointer to an array of offsetsOut, FFIABI size_t, with one element for each element of the struct.
This is an 'out' parameter that will be filled in by this callthe abi to be used abi)Wrapper for |
| private static native boolean | |
| pack-priv static int | |
| pack-priv static int | |
| pack-priv static int | |
| pack-priv static MemorySegment | |
| pack-priv static MemorySegment | Returns: a pointer to a preparedffi_cif structa pointer to an @{code ffi_type} describing the return type returnType, int the number of arguments numArgs, MemorySegment a pointer to an array of pointers, which each point to an paramTypes, FFIABI ffi_type describing a
parameter typethe abi to be used abi, Arena the scope into which to allocate the returned scope)ffi_cif structWrapper for |
| pack-priv static MemorySegment | Returns: a pointer to a preparedffi_cif structa pointer to an @{code ffi_type} describing the return type returnType, int the number of fixed arguments numFixedArgs, int the number of total arguments numTotalArgs, MemorySegment a pointer to an array of pointers, which each point to an paramTypes, FFIABI ffi_type describing a
parameter typethe abi to be used abi, Arena the scope into which to allocate the returned scope)ffi_cif structWrapper for |
| pack-priv static int | |
| pack-priv static MemorySegment | |
| pack-priv static MemorySegment | |
| pack-priv static MemorySegment | |
| pack-priv static MemorySegment | |
| private static native long | |
| pack-priv static short | |
| private static boolean | |
| pack-priv static MemorySegment | |
| pack-priv static MemorySegment | |
| pack-priv static MemorySegment | |
| pack-priv static int |
| SUPPORTED | back to summary |
|---|---|
| pack-priv static final boolean SUPPORTED | |
| UPCALL_TARGET_TYPE | back to summary |
|---|---|
| private static final MethodType UPCALL_TARGET_TYPE | |
| LibFallback | back to summary |
|---|---|
| private LibFallback() | |
| alignof_double | back to summary |
|---|---|
| private static native int alignof_double() | |
| alignof_long_long | back to summary |
|---|---|
| private static native int alignof_long_long() | |
| checkStatus | back to summary |
|---|---|
| private static void checkStatus(int code) | |
| createClosure | back to summary |
|---|---|
| pack-priv static MemorySegment createClosure(MemorySegment cif, MethodHandle target, Arena arena) throws IllegalStateException, IllegalArgumentException Create an upcallStub-style closure. This method wraps the
The closure will end up calling into
The target method handle should have the type
| |
| createClosure | back to summary |
|---|---|
| private static native int createClosure(long cif, Object userData, long[] ptrs) | |
| defaultABI | back to summary |
|---|---|
| pack-priv static int defaultABI() | |
| doDowncall | back to summary |
|---|---|
| pack-priv static void doDowncall(MemorySegment cif, MemorySegment target, MemorySegment retPtr, MemorySegment argPtrs, Object captureStateHeapBase, MemorySegment capturedState, int capturedStateMask, Object[] heapBases, int numArgs) Do a libffi based downcall. This method wraps the
| |
| doDowncall | back to summary |
|---|---|
| private static native void doDowncall(long cif, long fn, long rvalue, long avalues, Object captureStateHeapBase, long capturedState, int capturedStateMask, Object[] heapBases, int numArgs) | |
| doubleAlign | back to summary |
|---|---|
| pack-priv static int doubleAlign() | |
| doubleType | back to summary |
|---|---|
| pack-priv static MemorySegment doubleType() | |
| doUpcall | back to summary |
|---|---|
| private static void doUpcall(long retPtr, long argPtrs, MethodHandle target) | |
| ffi_default_abi | back to summary |
|---|---|
| private static native int ffi_default_abi() | |
| ffi_get_struct_offsets | back to summary |
|---|---|
| private static native int ffi_get_struct_offsets(int abi, long type, long offsets) | |
| ffi_prep_cif | back to summary |
|---|---|
| private static native int ffi_prep_cif(long cif, int abi, int nargs, long rtype, long atypes) | |
| ffi_prep_cif_var | back to summary |
|---|---|
| private static native int ffi_prep_cif_var(long cif, int abi, int nfixedargs, int ntotalargs, long rtype, long atypes) | |
| ffi_sizeof_int | back to summary |
|---|---|
| private static native int ffi_sizeof_int() | |
| ffi_sizeof_long | back to summary |
|---|---|
| private static native int ffi_sizeof_long() | |
| ffi_sizeof_short | back to summary |
|---|---|
| private static native int ffi_sizeof_short() | |
| ffi_sizeof_wchar | back to summary |
|---|---|
| private static native int ffi_sizeof_wchar() | |
| ffi_type_double | back to summary |
|---|---|
| private static native long ffi_type_double() | |
| ffi_type_float | back to summary |
|---|---|
| private static native long ffi_type_float() | |
| ffi_type_pointer | back to summary |
|---|---|
| private static native long ffi_type_pointer() | |
| ffi_type_sint16 | back to summary |
|---|---|
| private static native long ffi_type_sint16() | |
| ffi_type_sint32 | back to summary |
|---|---|
| private static native long ffi_type_sint32() | |
| ffi_type_sint64 | back to summary |
|---|---|
| private static native long ffi_type_sint64() | |
| ffi_type_sint8 | back to summary |
|---|---|
| private static native long ffi_type_sint8() | |
| ffi_type_struct | back to summary |
|---|---|
| private static native short ffi_type_struct() | |
| ffi_type_uint16 | back to summary |
|---|---|
| private static native long ffi_type_uint16() | |
| ffi_type_uint32 | back to summary |
|---|---|
| private static native long ffi_type_uint32() | |
| ffi_type_uint64 | back to summary |
|---|---|
| private static native long ffi_type_uint64() | |
| ffi_type_uint8 | back to summary |
|---|---|
| private static native long ffi_type_uint8() | |
| ffi_type_void | back to summary |
|---|---|
| private static native long ffi_type_void() | |
| floatType | back to summary |
|---|---|
| pack-priv static MemorySegment floatType() | |
| freeClosure | back to summary |
|---|---|
| private static native void freeClosure(long closureAddress, long globalTarget) | |
| getStructOffsets | back to summary |
|---|---|
| pack-priv static void getStructOffsets(MemorySegment structType, MemorySegment offsetsOut, FFIABI abi) throws IllegalStateException Wrapper for
| |
| init | back to summary |
|---|---|
| private static native boolean init() | |
| intSize | back to summary |
|---|---|
| pack-priv static int intSize() | |
| longLongAlign | back to summary |
|---|---|
| pack-priv static int longLongAlign() | |
| longSize | back to summary |
|---|---|
| pack-priv static int longSize() | |
| pointerType | back to summary |
|---|---|
| pack-priv static MemorySegment pointerType() | |
| prepCif | back to summary |
|---|---|
| pack-priv static MemorySegment prepCif(MemorySegment returnType, int numArgs, MemorySegment paramTypes, FFIABI abi, Arena scope) throws IllegalStateException Wrapper for
| |
| prepCifVar | back to summary |
|---|---|
| pack-priv static MemorySegment prepCifVar(MemorySegment returnType, int numFixedArgs, int numTotalArgs, MemorySegment paramTypes, FFIABI abi, Arena scope) throws IllegalStateException Wrapper for
| |
| shortSize | back to summary |
|---|---|
| pack-priv static int shortSize() | |
| sint16Type | back to summary |
|---|---|
| pack-priv static MemorySegment sint16Type() | |
| sint32Type | back to summary |
|---|---|
| pack-priv static MemorySegment sint32Type() | |
| sint64Type | back to summary |
|---|---|
| pack-priv static MemorySegment sint64Type() | |
| sint8Type | back to summary |
|---|---|
| pack-priv static MemorySegment sint8Type() | |
| sizeofCif | back to summary |
|---|---|
| private static native long sizeofCif() | |
| structTag | back to summary |
|---|---|
| pack-priv static short structTag() | |
| tryLoadLibrary | back to summary |
|---|---|
private static boolean tryLoadLibrary()
| |
| uint16Type | back to summary |
|---|---|
| pack-priv static MemorySegment uint16Type() | |
| uint8Type | back to summary |
|---|---|
| pack-priv static MemorySegment uint8Type() | |
| voidType | back to summary |
|---|---|
| pack-priv static MemorySegment voidType() | |
| wcharSize | back to summary |
|---|---|
| pack-priv static int wcharSize() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final MemorySegment | |
| pack-priv static final MemorySegment | |
| pack-priv static final MemorySegment | |
| pack-priv static final MemorySegment | |
| pack-priv static final MemorySegment | |
| pack-priv static final MemorySegment | |
| pack-priv static final MemorySegment | |
| pack-priv static final long | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final short | |
| pack-priv static final MemorySegment | |
| pack-priv static final MemorySegment | |
| pack-priv static final MemorySegment |
| Access | Constructor and Description |
|---|---|
| private |
| ALIGNOF_DOUBLE | back to summary |
|---|---|
| pack-priv static final int ALIGNOF_DOUBLE | |
| ALIGNOF_LONG_LONG | back to summary |
|---|---|
| pack-priv static final int ALIGNOF_LONG_LONG | |
| DEFAULT_ABI | back to summary |
|---|---|
| pack-priv static final int DEFAULT_ABI | |
| DOUBLE_TYPE | back to summary |
|---|---|
| pack-priv static final MemorySegment DOUBLE_TYPE | |
| FLOAT_TYPE | back to summary |
|---|---|
| pack-priv static final MemorySegment FLOAT_TYPE | |
| POINTER_TYPE | back to summary |
|---|---|
| pack-priv static final MemorySegment POINTER_TYPE | |
| SINT16_TYPE | back to summary |
|---|---|
| pack-priv static final MemorySegment SINT16_TYPE | |
| SINT32_TYPE | back to summary |
|---|---|
| pack-priv static final MemorySegment SINT32_TYPE | |
| SINT64_TYPE | back to summary |
|---|---|
| pack-priv static final MemorySegment SINT64_TYPE | |
| SINT8_TYPE | back to summary |
|---|---|
| pack-priv static final MemorySegment SINT8_TYPE | |
| SIZEOF_CIF | back to summary |
|---|---|
| pack-priv static final long SIZEOF_CIF | |
| SIZEOF_INT | back to summary |
|---|---|
| pack-priv static final int SIZEOF_INT | |
| SIZEOF_LONG | back to summary |
|---|---|
| pack-priv static final int SIZEOF_LONG | |
| SIZEOF_SHORT | back to summary |
|---|---|
| pack-priv static final int SIZEOF_SHORT | |
| SIZEOF_WCHAR | back to summary |
|---|---|
| pack-priv static final int SIZEOF_WCHAR | |
| STRUCT_TAG | back to summary |
|---|---|
| pack-priv static final short STRUCT_TAG | |
| UINT16_TYPE | back to summary |
|---|---|
| pack-priv static final MemorySegment UINT16_TYPE | |
| UINT8_TYPE | back to summary |
|---|---|
| pack-priv static final MemorySegment UINT8_TYPE | |
| VOID_TYPE | back to summary |
|---|---|
| pack-priv static final MemorySegment VOID_TYPE | |
| NativeConstants | back to summary |
|---|---|
| private NativeConstants() | |