# Uses of Class
jdk.incubator.foreign.ValueLayout.OfDouble

Packages that use ValueLayout.OfDouble
Package
Description
jdk.incubator.foreign
Classes to support low-level and efficient foreign memory/function access, directly from Java.

## Uses of ValueLayout.OfDouble in jdk.incubator.foreign

Fields in jdk.incubator.foreign declared as ValueLayout.OfDouble
Modifier and Type
Field
Description
`static final ValueLayout.OfDouble`
ValueLayout.`JAVA_DOUBLE`
A value layout constant whose size is the same as that of a Java `double`, bit alignment set to 8, and byte order set to `ByteOrder.nativeOrder()`.
Methods in jdk.incubator.foreign that return ValueLayout.OfDouble
Modifier and Type
Method
Description
`ValueLayout.OfDouble`
ValueLayout.OfDouble.`withBitAlignment(long alignmentBits)`
`ValueLayout.OfDouble`
ValueLayout.OfDouble.`withName(String name)`
`ValueLayout.OfDouble`
ValueLayout.OfDouble.`withOrder(ByteOrder order)`
Methods in jdk.incubator.foreign with parameters of type ValueLayout.OfDouble
Modifier and Type
Method
Description
`VaList.Builder`
VaList.Builder.`addVarg(ValueLayout.OfDouble layout, double value)`
Writes a `double` 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 a `double` 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.