# Restricted Methods

- Methods
  Method
  Description
  java.lang.foreign.AddressLayout.withTargetLayout(MemoryLayout)RESTRICTED
  Returns an address layout with the same carrier, alignment constraint, name and order as this address layout, but associated with the specified target layout.
  java.lang.foreign.Linker.downcallHandle(FunctionDescriptor, Linker.Option...)RESTRICTED
  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...)RESTRICTED
  Creates 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...)RESTRICTED
  Creates an upcall stub which can be passed to other foreign functions as a function pointer, associated with the given arena.
  java.lang.foreign.MemorySegment.reinterpret(long)RESTRICTED
  Returns a new memory segment that has the same address and scope as this segment, but with the provided size.
  java.lang.foreign.MemorySegment.reinterpret(long, Arena, Consumer<MemorySegment>)RESTRICTED
  Returns a new segment with the same address as this segment, but with the provided size and the provided arena's scope.
  java.lang.foreign.MemorySegment.reinterpret(Arena, Consumer<MemorySegment>)RESTRICTED
  Returns a new memory segment with the same address and size as this segment, but with the provided arena's scope.
  java.lang.foreign.SymbolLookup.libraryLookup(String, Arena)RESTRICTED
  Loads a library with the given name (if not already loaded) and creates a symbol lookup for symbols in that library.
  java.lang.foreign.SymbolLookup.libraryLookup(Path, Arena)RESTRICTED
  Loads a library from the given path (if not already loaded) and creates a symbol lookup for symbols in that library.
  java.lang.ModuleLayer.Controller.enableNativeAccess(Module)RESTRICTED
  Enables native access for a module in the layer if the caller's module has native access.
  java.lang.Runtime.load(String)RESTRICTED
  Loads the native library specified by the filename argument.
  java.lang.Runtime.loadLibrary(String)RESTRICTED
  Loads the native library specified by the `libname` argument.
  java.lang.System.load(String)RESTRICTED
  Loads the native library specified by the filename argument.
  java.lang.System.loadLibrary(String)RESTRICTED
  Loads the native library specified by the `libname` argument.