Uses of Interface
jdk.incubator.foreign.Addressable
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of Addressable in jdk.incubator.foreign
Modifier and TypeInterfaceDescriptioninterface
A memory address models a reference into a memory location.interface
A memory segment models a contiguous region of memory.interface
A native symbol models a reference to a location (typically the entry point of a function) in a native library.interface
An interface that models a variable argument list, similar in functionality to a Cva_list
.Modifier and TypeMethodDescriptionVaList.Builder.addVarg
(ValueLayout.OfAddress layout, Addressable value) Writes anAddressable
value to the variable argument list being constructed.default MemorySegment
SegmentAllocator.allocate
(ValueLayout.OfAddress layout, Addressable value) Allocate a memory segment with given layout and initialize it with given address value (expressed as anAddressable
instance).void
MemoryAddress.set
(ValueLayout.OfAddress layout, long offset, Addressable value) Writes an address to this address instance and offset with given layout.default void
MemorySegment.set
(ValueLayout.OfAddress layout, long offset, Addressable value) Writes an address to this segment and offset with given layout.void
MemoryAddress.setAtIndex
(ValueLayout.OfAddress layout, long index, Addressable value) Writes an address to this address instance and index, scaled by given layout size.default void
MemorySegment.setAtIndex
(ValueLayout.OfAddress layout, long index, Addressable value) Writes an address to this segment and index, scaled by given layout size.