Uses of Interface
java.lang.foreign.ValueLayout.OfInt
Packages that use ValueLayout.OfIntPREVIEW
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of ValueLayout.OfIntPREVIEW in java.lang.foreignPREVIEW
Fields in java.lang.foreignPREVIEW declared as ValueLayout.OfIntPREVIEWModifier and TypeFieldDescriptionstatic final ValueLayout.OfIntPREVIEWValueLayout.JAVA_INTA value layout constant whose size is the same as that of a Javaint, byte alignment set to 4, and byte order set toByteOrder.nativeOrder().static final ValueLayout.OfIntPREVIEWValueLayout.JAVA_INT_UNALIGNEDAn unaligned value layout constant whose size is the same as that of a Javaintand byte order set toByteOrder.nativeOrder().Methods in java.lang.foreignPREVIEW that return ValueLayout.OfIntPREVIEWModifier and TypeMethodDescriptionValueLayout.OfInt.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.OfInt.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.OfIntPREVIEWModifier and TypeMethodDescriptiondefault MemorySegmentPREVIEWSegmentAllocator.allocate(ValueLayout.OfIntPREVIEW layout, int value) Returns a new memory segment initialized with the providedintvalueas specified by the providedlayout(i.e. byte ordering, alignment and size).default MemorySegmentPREVIEWSegmentAllocator.allocateArray(ValueLayout.OfIntPREVIEW elementLayout, int... elements) Returns a new memory segment with a byteSize()PREVIEW ofE*layout.byteSize()initialized with the providedEintelementsas specified by the providedlayout(i.e. byte ordering, alignment and size).default intMemorySegment.get(ValueLayout.OfIntPREVIEW layout, long offset) Reads an int from this segment at the given offset, with the given layout.default intMemorySegment.getAtIndex(ValueLayout.OfIntPREVIEW layout, long index) Reads an int from this segment at the given index, scaled by the given layout size.default voidMemorySegment.set(ValueLayout.OfIntPREVIEW layout, long offset, int value) Writes an int into this segment at the given offset, with the given layout.default voidMemorySegment.setAtIndex(ValueLayout.OfIntPREVIEW layout, long index, int value) Writes an int into this segment at the given index, scaled by the given layout size.int[]MemorySegment.toArray(ValueLayout.OfIntPREVIEW elementLayout) Copy the contents of this memory segment into a new int array.