Uses of Interface
java.lang.foreign.ValueLayout.OfDouble
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of ValueLayout.OfDoublePREVIEW in java.lang.foreign
Modifier and TypeFieldDescriptionstatic final ValueLayout.OfDoublePREVIEW
ValueLayout.JAVA_DOUBLE
A value layout constant whose size is the same as that of a Javadouble
, bit alignment set to 64, and byte order set toByteOrder.nativeOrder()
.static final ValueLayout.OfDoublePREVIEW
ValueLayout.JAVA_DOUBLE_UNALIGNED
An unaligned value layout constant whose size is the same as that of a Javadouble
and byte order set toByteOrder.nativeOrder()
.Modifier and TypeMethodDescriptionValueLayout.OfDouble.withBitAlignment
(long bitAlignment) Returns a memory layout of the same type with the same size and name as this layout, but with the specified alignment constraint (in bits).Returns a memory layout of the same type with the same size and alignment constraint as this layout, but with the specified name.Returns a value layout with the same carrier, alignment constraint and name as this value layout, but with the specified byte order.Modifier and TypeMethodDescriptionVaList.Builder.addVarg
(ValueLayout.OfDoublePREVIEW layout, double value) Writes adouble
value to the variable argument list being constructed.default MemorySegmentPREVIEW
SegmentAllocator.allocate
(ValueLayout.OfDoublePREVIEW layout, double value) Allocates a memory segment with the given layout and initializes it with the given double value.default MemorySegmentPREVIEW
SegmentAllocator.allocateArray
(ValueLayout.OfDoublePREVIEW elementLayout, double... elements) Allocates a memory segment with the given layout and initializes it with the given double elements.default double
MemorySegment.get
(ValueLayout.OfDoublePREVIEW layout, long offset) Reads a double from this segment at the given offset, with the given layout.default double
MemorySegment.getAtIndex
(ValueLayout.OfDoublePREVIEW layout, long index) Reads a double from this segment at the given index, scaled by the given layout size.double
VaList.nextVarg
(ValueLayout.OfDoublePREVIEW layout) Reads the next value as adouble
and advances this variable argument list's position.default void
MemorySegment.set
(ValueLayout.OfDoublePREVIEW layout, long offset, double value) Writes a double into this segment at the given offset, with the given layout.default void
MemorySegment.setAtIndex
(ValueLayout.OfDoublePREVIEW layout, long index, double value) Writes a double into this segment at the given index, scaled by the given layout size.double[]
MemorySegment.toArray
(ValueLayout.OfDoublePREVIEW elementLayout) Copy the contents of this memory segment into a new double array.