Uses of Interface
jdk.incubator.foreign.SegmentAllocator
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of SegmentAllocator in jdk.incubator.foreign
Modifier and TypeMethodDescriptionstatic SegmentAllocator
SegmentAllocator.implicitAllocator()
Returns a native allocator which allocates segments in independent implicit scopes.static SegmentAllocator
SegmentAllocator.nativeAllocator
(ResourceScope scope) Returns a native allocator, associated with the provided scope.static SegmentAllocator
SegmentAllocator.newNativeArena
(long arenaSize, long blockSize, ResourceScope scope) Returns a native arena-based allocator, associated with the provided scope, with given arena size and block size.static SegmentAllocator
SegmentAllocator.newNativeArena
(long arenaSize, ResourceScope scope) Returns a native unbounded arena-based allocator, with block size set to the specified arena size, associated with the provided scope, with given arena size.static SegmentAllocator
SegmentAllocator.newNativeArena
(ResourceScope scope) Returns a native unbounded arena-based allocator, with predefined block size and maximum arena size, associated with the provided scope.static SegmentAllocator
SegmentAllocator.prefixAllocator
(MemorySegment segment) Returns a segment allocator which responds to allocation requests by recycling a single segment; that is, each new allocation request will return a new slice starting at the segment offset0
(alignment constraints are ignored by this allocator), hence the name prefix allocator.Modifier and TypeMethodDescriptionVaList.nextVarg
(GroupLayout layout, SegmentAllocator allocator) Reads the next value as aMemorySegment
, and advances this variable argument list's position.