接口的使用
java.lang.foreign.SegmentAllocator
使用 SegmentAllocator 的包PREVIEW
-
SegmentAllocator 的用法PREVIEW 在java.lang.foreign
修饰符和类型方法描述static SegmentAllocatorPREVIEWSegmentAllocator.nativeAllocator(SegmentScopePREVIEW scope) 用于分配本机段的简单分配器。static SegmentAllocatorPREVIEWSegmentAllocator.prefixAllocator(MemorySegmentPREVIEW segment) 返回一个段分配器,它通过回收单个段来响应分配请求。static SegmentAllocatorPREVIEWSegmentAllocator.slicingAllocator(MemorySegmentPREVIEW segment) 返回一个段分配器,它通过返回从提供的段中获得的连续切片来响应分配请求。java.lang.foreign 中的方法,参数类型为 SegmentAllocatorPREVIEW修饰符和类型方法描述VaList.nextVarg(GroupLayoutPREVIEW layout, SegmentAllocatorPREVIEW allocator) 将下一个复合值读入新的MemorySegment,使用提供的分配器分配,并推进此可变参数列表的位置。