Uses of Interface
jdk.incubator.foreign.NativeSymbol
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of NativeSymbol in jdk.incubator.foreign
Modifier and TypeMethodDescriptionstatic NativeSymbol
NativeSymbol.ofAddress
(String name, MemoryAddress address, ResourceScope scope) Creates a new symbol from given name, address and scope.CLinker.upcallStub
(MethodHandle target, FunctionDescriptor function, ResourceScope scope) Allocates a native stub with given scope which can be passed to other foreign functions (as a function pointer); calling such a function pointer from native code will result in the execution of the provided method handle.Modifier and TypeMethodDescriptiondefault Optional<NativeSymbol>
Look up a symbol in the standard libraries associated with this linker.Looks up a symbol with given name in this lookup.Modifier and TypeMethodDescriptiondefault MethodHandle
CLinker.downcallHandle
(NativeSymbol symbol, FunctionDescriptor function) Obtains a foreign method handle, with the given type and featuring the given function descriptor, which can be used to call a target foreign function at the address in the given native symbol.