- All Known Subinterfaces:
CLinker.VaList,LibraryLookup.Symbol,MemoryAddress,MemorySegment
public interface Addressable
Represents a type which is addressable. An addressable type is one which can be projected down to
a memory address instance (see
address()). Examples of addressable types are MemorySegment,
MemoryAddress, LibraryLookup.Symbol and CLinker.VaList.- API Note:
- In the future, if the Java language permits,
Addressablemay become asealedinterface, which would prohibit subclassing except by explicitly permitted types, such asMemorySegment,MemoryAddress,LibraryLookup.SymbolandCLinker.VaList. - Implementation Requirements:
- Implementations of this interface value-based.
-
Method Summary
-
Method Details
-
address
MemoryAddress address()Map this object into aMemoryAddressinstance.- Returns:
- the
MemoryAddressinstance associated with this object.
-