Returns 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.
Creates a method handle that is used to call a foreign function with
the given signature and address.
Creates 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 scope.
Returns a new memory segment with the same address and size as this segment, but
with the provided 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 the libname
argument.
Loads the native library specified by the filename argument.
Loads the native library specified by the libname
argument.