Uses of Interface
jdk.incubator.foreign.Addressable
Packages that use Addressable
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of Addressable in jdk.incubator.foreign
Subinterfaces of Addressable in jdk.incubator.foreignModifier and TypeInterfaceDescriptionstatic interfaceAn interface that models a Cva_list.static interfaceA symbol retrieved during a library lookup.interfaceA memory address models a reference into a memory location.interfaceA memory segment models a contiguous region of memory.Methods in jdk.incubator.foreign with parameters of type AddressableModifier and TypeMethodDescriptiondefault MemorySegmentNativeScope.allocate(ValueLayout layout, Addressable value)Allocate a block of memory in this native scope with given layout and initialize it with given address value (expressed as anAddressableinstance).default MemorySegmentNativeScope.allocateArray(ValueLayout elementLayout, Addressable[] array)Allocate a block of memory in this native scope with given layout and initialize it with given address array.CLinker.downcallHandle(Addressable symbol, MethodType type, FunctionDescriptor function)Obtain a foreign method handle, with given type, which can be used to call a target foreign function at a given address and featuring a given function descriptor.static voidMemoryAccess.setAddress(MemorySegment segment, Addressable value)Writes a memory address at given segment, with byte order set toByteOrder.nativeOrder().static voidMemoryAccess.setAddressAtIndex(MemorySegment segment, long index, Addressable value)Writes a memory address at given segment and element index, with byte order set toByteOrder.nativeOrder().static voidMemoryAccess.setAddressAtOffset(MemorySegment segment, long offset, Addressable value)Writes a memory address at given segment and offset, with byte order set toByteOrder.nativeOrder().CLinker.VaList.Builder.vargFromAddress(ValueLayout layout, Addressable value)Adds a native value represented as aMemoryAddressto the Cva_listbeing constructed.