Uses of Class
java.lang.foreign.ValueLayout.OfLong
Packages that use ValueLayout.OfLongPREVIEW
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of ValueLayout.OfLongPREVIEW in java.lang.foreign
Fields in java.lang.foreign declared as ValueLayout.OfLongPREVIEWModifier and TypeFieldDescriptionstatic final ValueLayout.OfLongPREVIEWValueLayout.JAVA_LONGA value layout constant whose size is the same as that of a Javalong, bit alignment set to 64, and byte order set toByteOrder.nativeOrder().Methods in java.lang.foreign that return ValueLayout.OfLongPREVIEWMethods in java.lang.foreign with parameters of type ValueLayout.OfLongPREVIEWModifier and TypeMethodDescriptionVaList.Builder.addVarg(ValueLayout.OfLongPREVIEW layout, long value) Writes alongvalue to the variable argument list being constructed.default MemorySegmentPREVIEWSegmentAllocator.allocate(ValueLayout.OfLongPREVIEW layout, long value) Allocates a memory segment with the given layout and initializes it with the given long value.default MemorySegmentPREVIEWSegmentAllocator.allocateArray(ValueLayout.OfLongPREVIEW elementLayout, long... elements) Allocates a memory segment with the given layout and initializes it with the given long elements.longMemoryAddress.get(ValueLayout.OfLongPREVIEW layout, long offset) Reads a long from this address at the given offset, with the given layout.default longMemorySegment.get(ValueLayout.OfLongPREVIEW layout, long offset) Reads a long from this segment at the given offset, with the given layout.longMemoryAddress.getAtIndex(ValueLayout.OfLongPREVIEW layout, long index) Reads a long from this address at the given index, scaled by the given layout size.default longMemorySegment.getAtIndex(ValueLayout.OfLongPREVIEW layout, long index) Reads a long from this segment at the given index, scaled by the given layout size.longVaList.nextVarg(ValueLayout.OfLongPREVIEW layout) Reads the next value as alongand advances this variable argument list's position.voidMemoryAddress.set(ValueLayout.OfLongPREVIEW layout, long offset, long value) Writes a long into this address at the given offset, with the given layout.default voidMemorySegment.set(ValueLayout.OfLongPREVIEW layout, long offset, long value) Writes a long into this segment at the given offset, with the given layout.voidMemoryAddress.setAtIndex(ValueLayout.OfLongPREVIEW layout, long index, long value) Writes a long into this address at the given index, scaled by the given layout size.default voidMemorySegment.setAtIndex(ValueLayout.OfLongPREVIEW layout, long index, long value) Writes a long into this segment at the given index, scaled by the given layout size.long[]MemorySegment.toArray(ValueLayout.OfLongPREVIEW elementLayout) Copy the contents of this memory segment into a new long array.