Uses of Interface
jdk.incubator.foreign.NativeScope
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of NativeScope in jdk.incubator.foreign
Modifier and TypeMethodDescriptionstatic NativeScope
NativeScope.boundedScope(long size)
Creates a new bounded native scope, backed by off-heap memory.static NativeScope
NativeScope.unboundedScope()
Creates a new unbounded native scope, backed by off-heap memory.Modifier and TypeMethodDescriptionCLinker.VaList.copy(NativeScope scope)
Copies this Cva_list
at its current position.MemorySegment.handoff(NativeScope nativeScope)
Obtains a new confined memory segment backed by the same underlying memory region as this segment, but whose temporal bounds are controlled by the providedNativeScope
instance.static CLinker.VaList
CLinker.VaList.make(Consumer<CLinker.VaList.Builder> actions, NativeScope scope)
Constructs a newVaList
using a builder (seeCLinker.VaList.Builder
).static MemorySegment
CLinker.toCString(String str, Charset charset, NativeScope scope)
Converts a Java string into a null-terminated C string, using the givencharset
, storing the result into a new native memory segment native memory segment allocated using the provided scope.static MemorySegment
CLinker.toCString(String str, NativeScope scope)
Converts a Java string into a null-terminated C string, using the platform's default charset, storing the result into a native memory segment allocated using the provided scope.CLinker.VaList.vargAsSegment(MemoryLayout layout, NativeScope scope)
Reads the next value as aMemorySegment
, and advances this va list's position.