Uses of Interface
java.lang.foreign.SegmentAllocator
Packages that use SegmentAllocatorPREVIEW
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of SegmentAllocatorPREVIEW in java.lang.foreign
Subinterfaces of SegmentAllocatorPREVIEW in java.lang.foreignModifier and TypeInterfaceDescriptioninterface
Preview.An arena controls the lifecycle of memory segments, providing both flexible allocation and timely deallocation.Methods in java.lang.foreign that return SegmentAllocatorPREVIEWModifier and TypeMethodDescriptionstatic SegmentAllocatorPREVIEW
SegmentAllocator.nativeAllocator
(SegmentScopePREVIEW scope) Simple allocator used to allocate native segments.static SegmentAllocatorPREVIEW
SegmentAllocator.prefixAllocator
(MemorySegmentPREVIEW segment) Returns a segment allocator which responds to allocation requests by recycling a single segment.static SegmentAllocatorPREVIEW
SegmentAllocator.slicingAllocator
(MemorySegmentPREVIEW segment) Returns a segment allocator which responds to allocation requests by returning consecutive slices obtained from the provided segment.Methods in java.lang.foreign with parameters of type SegmentAllocatorPREVIEWModifier and TypeMethodDescriptionVaList.nextVarg
(GroupLayoutPREVIEW layout, SegmentAllocatorPREVIEW allocator) Reads the next composite value into a newMemorySegment
, allocated with the provided allocator, and advances this variable argument list's position.