Uses of Interface
java.lang.foreign.ValueLayout.OfDouble
Packages that use ValueLayout.OfDoublePREVIEW
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of ValueLayout.OfDoublePREVIEW in java.lang.foreignPREVIEW
Fields in java.lang.foreignPREVIEW declared as ValueLayout.OfDoublePREVIEWModifier and TypeFieldDescriptionstatic final ValueLayout.OfDoublePREVIEWValueLayout.JAVA_DOUBLEA value layout constant whose size is the same as that of a Javadouble, (platform-dependent) byte alignment set toADDRESS.byteSize(), and byte order set toByteOrder.nativeOrder().static final ValueLayout.OfDoublePREVIEWValueLayout.JAVA_DOUBLE_UNALIGNEDAn unaligned value layout constant whose size is the same as that of a Javadoubleand byte order set toByteOrder.nativeOrder().Methods in java.lang.foreignPREVIEW that return ValueLayout.OfDoublePREVIEWModifier and TypeMethodDescriptionValueLayout.OfDouble.withByteAlignment(long byteAlignment) Returns a memory layout with the same characteristics as this layout, but with the given alignment constraint (in bytes).Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a value layout with the same characteristics as this layout, but with the given byte order.ValueLayout.OfDouble.withoutName()Returns a memory layout with the same characteristics as this layout, but with no name.Methods in java.lang.foreignPREVIEW with parameters of type ValueLayout.OfDoublePREVIEWModifier and TypeMethodDescriptiondefault MemorySegmentPREVIEWSegmentAllocator.allocate(ValueLayout.OfDoublePREVIEW layout, double value) Returns a new memory segment initialized with the provideddoublevalueas specified by the providedlayout(i.e. byte ordering, alignment and size).default MemorySegmentPREVIEWSegmentAllocator.allocateArray(ValueLayout.OfDoublePREVIEW elementLayout, double... elements) Returns a new memory segment with a byteSize()PREVIEW ofE*layout.byteSize()initialized with the providedEdoubleelementsas specified by the providedlayout(i.e. byte ordering, alignment and size).default doubleMemorySegment.get(ValueLayout.OfDoublePREVIEW layout, long offset) Reads a double from this segment at the given offset, with the given layout.default doubleMemorySegment.getAtIndex(ValueLayout.OfDoublePREVIEW layout, long index) Reads a double from this segment at the given index, scaled by the given layout size.default voidMemorySegment.set(ValueLayout.OfDoublePREVIEW layout, long offset, double value) Writes a double into this segment at the given offset, with the given layout.default voidMemorySegment.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.