Uses of Class
jdk.incubator.foreign.ValueLayout
Packages that use ValueLayout
Package
Description
 Classes to support low-level and efficient foreign memory/function access, directly from Java.
- 
Uses of ValueLayout in jdk.incubator.foreignFields in jdk.incubator.foreign declared as ValueLayoutModifier and TypeFieldDescriptionstatic ValueLayoutMemoryLayouts.ADDRESSA value layout constant whose size is the same as that of a machine address (e.g.static ValueLayoutMemoryLayouts.BITS_16_BEA value layout constant with size of two bytes, and byte order set toByteOrder.BIG_ENDIAN.static ValueLayoutMemoryLayouts.BITS_16_LEA value layout constant with size of two bytes, and byte order set toByteOrder.LITTLE_ENDIAN.static ValueLayoutMemoryLayouts.BITS_32_BEA value layout constant with size of four bytes, and byte order set toByteOrder.BIG_ENDIAN.static ValueLayoutMemoryLayouts.BITS_32_LEA value layout constant with size of four bytes, and byte order set toByteOrder.LITTLE_ENDIAN.static ValueLayoutMemoryLayouts.BITS_64_BEA value layout constant with size of eight bytes, and byte order set toByteOrder.BIG_ENDIAN.static ValueLayoutMemoryLayouts.BITS_64_LEA value layout constant with size of eight bytes, and byte order set toByteOrder.LITTLE_ENDIAN.static ValueLayoutMemoryLayouts.BITS_8_BEA value layout constant with size of one byte, and byte order set toByteOrder.BIG_ENDIAN.static ValueLayoutMemoryLayouts.BITS_8_LEA value layout constant with size of one byte, and byte order set toByteOrder.LITTLE_ENDIAN.static ValueLayoutCLinker.C_CHARThe layout for thecharC typestatic ValueLayoutCLinker.C_DOUBLEThe layout for thedoubleC typestatic ValueLayoutCLinker.C_FLOATThe layout for thefloatC typestatic ValueLayoutCLinker.C_INTThe layout for theintC typestatic ValueLayoutCLinker.C_LONGThe layout for thelongC typestatic ValueLayoutCLinker.C_LONG_LONGThe layout for thelong longC type.static ValueLayoutCLinker.C_POINTERTheT*native type.static ValueLayoutCLinker.C_SHORTThe layout for theshortC typestatic ValueLayoutMemoryLayouts.JAVA_BYTEA value layout constant whose size is the same as that of a Javabyte, and byte order set toByteOrder.nativeOrder().static ValueLayoutMemoryLayouts.JAVA_CHARA value layout constant whose size is the same as that of a Javachar, and byte order set toByteOrder.nativeOrder().static ValueLayoutMemoryLayouts.JAVA_DOUBLEA value layout constant whose size is the same as that of a Javadouble, and byte order set toByteOrder.nativeOrder().static ValueLayoutMemoryLayouts.JAVA_FLOATA value layout constant whose size is the same as that of a Javafloat, and byte order set toByteOrder.nativeOrder().static ValueLayoutMemoryLayouts.JAVA_INTA value layout constant whose size is the same as that of a Javaint, and byte order set toByteOrder.nativeOrder().static ValueLayoutMemoryLayouts.JAVA_LONGA value layout constant whose size is the same as that of a Javalong, and byte order set toByteOrder.nativeOrder().static ValueLayoutMemoryLayouts.JAVA_SHORTA value layout constant whose size is the same as that of a Javashort, and byte order set toByteOrder.nativeOrder().Methods in jdk.incubator.foreign that return ValueLayoutModifier and TypeMethodDescriptionstatic ValueLayoutMemoryLayout.ofValueBits(long size, ByteOrder order)Create a value layout of given byte order and size.ValueLayout.withAttribute(String name, Constable value)Returns a new memory layout which features the same attributes as this layout, plus the newly specified attribute.ValueLayout.withBitAlignment(long alignmentBits)Creates a new layout which features the desired alignment constraint.Creates a new layout which features the desired layout name.Returns a new value layout with given byte order.Methods in jdk.incubator.foreign that return types with arguments of type ValueLayoutMethods in jdk.incubator.foreign with parameters of type ValueLayoutModifier and TypeMethodDescriptiondefault MemorySegmentNativeScope.allocate(ValueLayout layout, byte value)Allocate a block of memory in this native scope with given layout and initialize it with given byte value.default MemorySegmentNativeScope.allocate(ValueLayout layout, char value)Allocate a block of memory in this native scope with given layout and initialize it with given char value.default MemorySegmentNativeScope.allocate(ValueLayout layout, double value)Allocate a block of memory in this native scope with given layout and initialize it with given double value.default MemorySegmentNativeScope.allocate(ValueLayout layout, float value)Allocate a block of memory in this native scope with given layout and initialize it with given float value.default MemorySegmentNativeScope.allocate(ValueLayout layout, int value)Allocate a block of memory in this native scope with given layout and initialize it with given int value.default MemorySegmentNativeScope.allocate(ValueLayout layout, long value)Allocate a block of memory in this native scope with given layout and initialize it with given long value.default MemorySegmentNativeScope.allocate(ValueLayout layout, short value)Allocate a block of memory in this native scope with given layout and initialize it with given short value.default MemorySegmentNativeScope.allocate(ValueLayout layout, Addressable value)Allocate a block of memory in this native scope with given layout and initialize it with given address value (expressed as anAddressableinstance).default MemorySegmentNativeScope.allocateArray(ValueLayout elementLayout, byte[] array)Allocate a block of memory in this native scope with given layout and initialize it with given byte array.default MemorySegmentNativeScope.allocateArray(ValueLayout elementLayout, char[] array)Allocate a block of memory in this native scope with given layout and initialize it with given char array.default MemorySegmentNativeScope.allocateArray(ValueLayout elementLayout, double[] array)Allocate a block of memory in this native scope with given layout and initialize it with given double array.default MemorySegmentNativeScope.allocateArray(ValueLayout elementLayout, float[] array)Allocate a block of memory in this native scope with given layout and initialize it with given float array.default MemorySegmentNativeScope.allocateArray(ValueLayout elementLayout, int[] array)Allocate a block of memory in this native scope with given layout and initialize it with given int array.default MemorySegmentNativeScope.allocateArray(ValueLayout elementLayout, long[] array)Allocate a block of memory in this native scope with given layout and initialize it with given long array.default MemorySegmentNativeScope.allocateArray(ValueLayout elementLayout, short[] array)Allocate a block of memory in this native scope with given layout and initialize it with given short array.default MemorySegmentNativeScope.allocateArray(ValueLayout elementLayout, Addressable[] array)Allocate a block of memory in this native scope with given layout and initialize it with given address array.CLinker.VaList.Builder.vargFromAddress(ValueLayout layout, Addressable value)Adds a native value represented as aMemoryAddressto the Cva_listbeing constructed.CLinker.VaList.Builder.vargFromDouble(ValueLayout layout, double value)Adds a native value represented as adoubleto the Cva_listbeing constructed.CLinker.VaList.Builder.vargFromInt(ValueLayout layout, int value)Adds a native value represented as anintto the Cva_listbeing constructed.CLinker.VaList.Builder.vargFromLong(ValueLayout layout, long value)Adds a native value represented as alongto the Cva_listbeing constructed.