Uses of Interface
jdk.incubator.foreign.NativeScope
Packages that use NativeScope
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of NativeScope in jdk.incubator.foreign
Methods in jdk.incubator.foreign that return NativeScopeModifier and TypeMethodDescriptionstatic NativeScopeNativeScope.boundedScope(long size)Creates a new bounded native scope, backed by off-heap memory.static NativeScopeNativeScope.unboundedScope()Creates a new unbounded native scope, backed by off-heap memory.Methods in jdk.incubator.foreign with parameters of type NativeScopeModifier and TypeMethodDescriptionCLinker.VaList.copy(NativeScope scope)Copies this Cva_listat 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 providedNativeScopeinstance.static CLinker.VaListCLinker.VaList.make(Consumer<CLinker.VaList.Builder> actions, NativeScope scope)Constructs a newVaListusing a builder (seeCLinker.VaList.Builder).static MemorySegmentCLinker.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 MemorySegmentCLinker.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.