Uses of Class
jdk.incubator.foreign.ValueLayout.OfDouble
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of ValueLayout.OfDouble in jdk.incubator.foreign
Modifier and TypeFieldDescriptionstatic final ValueLayout.OfDouble
ValueLayout.JAVA_DOUBLE
A value layout constant whose size is the same as that of a Javadouble
, bit alignment set to 8, and byte order set toByteOrder.nativeOrder()
.Modifier and TypeMethodDescriptionVaList.Builder.addVarg
(ValueLayout.OfDouble layout, double value) Writes adouble
value to the variable argument list being constructed.default MemorySegment
SegmentAllocator.allocate
(ValueLayout.OfDouble layout, double value) Allocate a memory segment with given layout and initialize it with given double value.default MemorySegment
SegmentAllocator.allocateArray
(ValueLayout.OfDouble elementLayout, double[] array) Allocate a memory segment with given layout and initialize it with given double array.double
MemoryAddress.get
(ValueLayout.OfDouble layout, long offset) Reads a double from this address and offset with given layout.default double
MemorySegment.get
(ValueLayout.OfDouble layout, long offset) Reads a double from this segment and offset with given layout.double
MemoryAddress.getAtIndex
(ValueLayout.OfDouble layout, long index) Reads a double from this address and index, scaled by given layout size.default double
MemorySegment.getAtIndex
(ValueLayout.OfDouble layout, long index) Reads a double from this segment and index, scaled by given layout size.double
VaList.nextVarg
(ValueLayout.OfDouble layout) Reads the next value as adouble
and advances this variable argument list's position.void
MemoryAddress.set
(ValueLayout.OfDouble layout, long offset, double value) Writes a double to this address instance and offset with given layout.default void
MemorySegment.set
(ValueLayout.OfDouble layout, long offset, double value) Writes a double to this segment and offset with given layout.void
MemoryAddress.setAtIndex
(ValueLayout.OfDouble layout, long index, double value) Writes a double to this address instance and index, scaled by given layout size.default void
MemorySegment.setAtIndex
(ValueLayout.OfDouble layout, long index, double value) Writes a double to this segment and index, scaled by given layout size.double[]
MemorySegment.toArray
(ValueLayout.OfDouble elementLayout) Copy the contents of this memory segment into a fresh double array.