Restricted Methods
-
MethodsMethodDescriptionReturns an address layout with the same carrier, alignment constraint, name and order as this address layout, but associated with the specified target layout.Creates a method handle that is used to call a foreign function with the given signature.java.lang.foreign.Linker.downcallHandle
(MemorySegment, FunctionDescriptor, Linker.Option...) RESTRICTEDCreates a method handle that is used to call a foreign function with the given signature and address.java.lang.foreign.Linker.upcallStub(MethodHandle, FunctionDescriptor, Arena, Linker.Option...) RESTRICTEDCreates an upcall stub which can be passed to other foreign functions as a function pointer, associated with the given arena.Returns a new memory segment that has the same address and scope as this segment, but with the provided size.Returns a new segment with the same address as this segment, but with the provided size and the provided arena's scope.Returns a new memory segment with the same address and size as this segment, but with the provided arena's scope.Loads a library with the given name (if not already loaded) and creates a symbol lookup for symbols in that library.Loads a library from the given path (if not already loaded) and creates a symbol lookup for symbols in that library.Enables native access for a module in the layer if the caller's module has native access.Loads the native library specified by the filename argument.Loads the native library specified by thelibnameargument.Loads the native library specified by the filename argument.Loads the native library specified by thelibnameargument.