Uses of Interface
java.lang.foreign.Addressable
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of AddressablePREVIEW in java.lang.foreign
Modifier and TypeInterfaceDescriptioninterface
Preview.A memory address models a reference into a memory location.interface
Preview.A memory segment models a contiguous region of memory.interface
Preview.A variable argument list, similar in functionality to a Cva_list
.Modifier and TypeMethodDescriptionVaList.Builder.addVarg
(ValueLayout.OfAddressPREVIEW layout, AddressablePREVIEW value) Writes anAddressable
value to the variable argument list being constructed.default MemorySegmentPREVIEW
SegmentAllocator.allocate
(ValueLayout.OfAddressPREVIEW layout, AddressablePREVIEW value) Allocates a memory segment with the given layout and initializes it with the given address value.default MethodHandle
Linker.downcallHandle
(AddressablePREVIEW symbol, FunctionDescriptorPREVIEW function) Creates a method handle which can be used to call a target foreign function with the given signature and address.void
MemoryAddress.set
(ValueLayout.OfAddressPREVIEW layout, long offset, AddressablePREVIEW value) Writes an address into this address at the given offset, with the given layout.default void
MemorySegment.set
(ValueLayout.OfAddressPREVIEW layout, long offset, AddressablePREVIEW value) Writes an address into this segment at the given offset, with the given layout.void
MemoryAddress.setAtIndex
(ValueLayout.OfAddressPREVIEW layout, long index, AddressablePREVIEW value) Writes an address into this address at the given index, scaled by the given layout size.default void
MemorySegment.setAtIndex
(ValueLayout.OfAddressPREVIEW layout, long index, AddressablePREVIEW value) Writes an address into this segment at the given index, scaled by the given layout size.