Uses of Interface
jdk.incubator.foreign.MemoryAddress
Packages that use MemoryAddress
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of MemoryAddress in jdk.incubator.foreign
Fields in jdk.incubator.foreign declared as MemoryAddressModifier and TypeFieldDescriptionstatic final MemoryAddressMemoryAddress.NULLThe native memory address instance modelling theNULLaddress.Methods in jdk.incubator.foreign that return MemoryAddressModifier and TypeMethodDescriptionMemoryAddress.addOffset(long offset) Creates a new memory address with given offset (in bytes), which might be negative, from current one.Addressable.address()Returns the memory address associated with this addressable.MemorySegment.address()Returns the base memory address associated with this native memory segment.NativeSymbol.address()Returns the memory address associated with this symbol.VaList.address()Returns the memory address associated with this variable argument list.MemoryAddress.get(ValueLayout.OfAddress layout, long offset) Reads an address from this address and offset with given layout.default MemoryAddressMemorySegment.get(ValueLayout.OfAddress layout, long offset) Reads an address from this segment and offset with given layout.MemoryAddress.getAtIndex(ValueLayout.OfAddress layout, long index) Reads an address from this address and index, scaled by given layout size.default MemoryAddressMemorySegment.getAtIndex(ValueLayout.OfAddress layout, long index) Reads an address from this segment and index, scaled by given layout size.VaList.nextVarg(ValueLayout.OfAddress layout) Reads the next value as aMemoryAddressand advances this variable argument list's position.static MemoryAddressMemoryAddress.ofLong(long value) Obtain a native memory address instance from given long address.Methods in jdk.incubator.foreign with parameters of type MemoryAddressModifier and TypeMethodDescriptionstatic MemorySegmentMemorySegment.ofAddress(MemoryAddress address, long bytesSize, ResourceScope scope) Creates a new native memory segment with given size and resource scope, and whose base address is the given address.static NativeSymbolNativeSymbol.ofAddress(String name, MemoryAddress address, ResourceScope scope) Creates a new symbol from given name, address and scope.static VaListVaList.ofAddress(MemoryAddress address, ResourceScope scope) Constructs a new variable argument list from a memory address pointing to an existing variable argument list, with given resource scope.