Uses of Class
jdk.incubator.foreign.ValueLayout.OfLong
Packages that use ValueLayout.OfLong
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of ValueLayout.OfLong in jdk.incubator.foreign
Fields in jdk.incubator.foreign declared as ValueLayout.OfLongModifier and TypeFieldDescriptionstatic final ValueLayout.OfLongValueLayout.JAVA_LONGA value layout constant whose size is the same as that of a Javalong, bit alignment set to 8, and byte order set toByteOrder.nativeOrder().Methods in jdk.incubator.foreign that return ValueLayout.OfLongMethods in jdk.incubator.foreign with parameters of type ValueLayout.OfLongModifier and TypeMethodDescriptionVaList.Builder.addVarg(ValueLayout.OfLong layout, long value) Writes alongvalue to the variable argument list being constructed.default MemorySegmentSegmentAllocator.allocate(ValueLayout.OfLong layout, long value) Allocate a memory segment with given layout and initialize it with given long value.default MemorySegmentSegmentAllocator.allocateArray(ValueLayout.OfLong elementLayout, long[] array) Allocate a memory segment with given layout and initialize it with given long array.longMemoryAddress.get(ValueLayout.OfLong layout, long offset) Reads a long from this address and offset with given layout.default longMemorySegment.get(ValueLayout.OfLong layout, long offset) Reads a long from this segment and offset with given layout.longMemoryAddress.getAtIndex(ValueLayout.OfLong layout, long index) Reads a long from this address and index, scaled by given layout size.default longMemorySegment.getAtIndex(ValueLayout.OfLong layout, long index) Reads a long from this segment and index, scaled by given layout size.longVaList.nextVarg(ValueLayout.OfLong layout) Reads the next value as alongand advances this variable argument list's position.voidMemoryAddress.set(ValueLayout.OfLong layout, long offset, long value) Writes a long to this address instance and offset with given layout.default voidMemorySegment.set(ValueLayout.OfLong layout, long offset, long value) Writes a long to this segment and offset with given layout.voidMemoryAddress.setAtIndex(ValueLayout.OfLong layout, long index, long value) Writes a long to this address instance and index, scaled by given layout size.default voidMemorySegment.setAtIndex(ValueLayout.OfLong layout, long index, long value) Writes a long to this segment and index, scaled by given layout size.long[]MemorySegment.toArray(ValueLayout.OfLong elementLayout) Copy the contents of this memory segment into a fresh long array.