- All Known Subinterfaces:
MemoryAddressPREVIEW
,MemorySegmentPREVIEW
,VaListPREVIEW
public sealed interface Addressable
permits MemorySegmentPREVIEW, MemoryAddressPREVIEW, VaListPREVIEW
Addressable
is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
An object that may be projected down to a memory address.
Examples of addressable types are
MemorySegment
PREVIEW, MemoryAddress
PREVIEW and VaList
PREVIEW.
The Addressable
PREVIEW type is used by a linkerPREVIEW to model the types of
downcall handlePREVIEW parameters that must be passed by reference
(e.g. memory addresses, variable argument lists and upcall stubs).
- Since:
- 19
-
Method Summary
Modifier and TypeMethodDescriptionaddress()
Returns the memory addressPREVIEW associated with this addressable.
-
Method Details
-
address
MemoryAddressPREVIEW address()Returns the memory addressPREVIEW associated with this addressable.- Returns:
- the memory addressPREVIEW associated with this addressable
-
Addressable
when preview features are enabled.