Uses of Interface
java.lang.foreign.SegmentScope
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files and sockets; defines selectors, for
multiplexed, non-blocking I/O operations.
-
Uses of SegmentScopePREVIEW in java.lang.foreign
Modifier and TypeMethodDescriptionstatic SegmentScopePREVIEW
SegmentScope.auto()
Creates a new scope that is managed, automatically, by the garbage collector.static SegmentScopePREVIEW
SegmentScope.global()
Obtains the global scope.Arena.scope()
Returns the arena scope.MemorySegment.scope()
Returns the scope associated with this memory segment.Modifier and TypeMethodDescriptionstatic MemorySegmentPREVIEW
MemorySegment.allocateNative
(long byteSize, long byteAlignment, SegmentScopePREVIEW scope) Creates a native segment with the given size (in bytes), alignment (in bytes) and scope.static MemorySegmentPREVIEW
MemorySegment.allocateNative
(long byteSize, SegmentScopePREVIEW scope) Creates a native segment with the given size (in bytes) and scope.static MemorySegmentPREVIEW
MemorySegment.allocateNative
(MemoryLayoutPREVIEW layout, SegmentScopePREVIEW scope) Creates a native segment with the given layout and scope.static SymbolLookupPREVIEW
SymbolLookup.libraryLookup
(String name, SegmentScopePREVIEW scope) Loads a library with the given name (if not already loaded) and creates a symbol lookup for symbols in that library.static SymbolLookupPREVIEW
SymbolLookup.libraryLookup
(Path path, SegmentScopePREVIEW scope) Loads a library from the given path (if not already loaded) and creates a symbol lookup for symbols in that library.VaList.make
(Consumer<VaList.BuilderPREVIEW> actions, SegmentScopePREVIEW scope) Creates a variable argument list using a builder (seeVaList.Builder
PREVIEW), with the given scope.static SegmentAllocatorPREVIEW
SegmentAllocator.nativeAllocator
(SegmentScopePREVIEW scope) Simple allocator used to allocate native segments.static MemorySegmentPREVIEW
MemorySegment.ofAddress
(long address, long byteSize, SegmentScopePREVIEW scope) Creates a native segment with the given size, address, and scope.static MemorySegmentPREVIEW
MemorySegment.ofAddress
(long address, long byteSize, SegmentScopePREVIEW scope, Runnable cleanupAction) Creates a native segment with the given size, address, and scope.VaList.ofAddress
(long address, SegmentScopePREVIEW scope) Creates a variable argument list from the give address value and scope.Linker.upcallStub
(MethodHandle target, FunctionDescriptorPREVIEW function, SegmentScopePREVIEW scope) Creates a stub which can be passed to other foreign functions as a function pointer, associated with the given scope. -
Uses of SegmentScopePREVIEW in java.nio.channels
Modifier and TypeMethodDescriptionFileChannel.map
(FileChannel.MapMode mode, long offset, long size, SegmentScopePREVIEW session) Preview.Maps a region of this channel's file into a new mapped memory segment, with the given offset, size and memory session.