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.foreign
Fields in jdk.incubator.foreign declared as ValueLayoutModifier and TypeFieldDescriptionstatic final ValueLayoutMemoryLayouts.ADDRESSA value layout constant whose size is the same as that of a machine address (e.g.static final ValueLayoutMemoryLayouts.BITS_16_BEA value layout constant with size of two bytes, and byte order set toByteOrder.BIG_ENDIAN.static final ValueLayoutMemoryLayouts.BITS_16_LEA value layout constant with size of two bytes, and byte order set toByteOrder.LITTLE_ENDIAN.static final ValueLayoutMemoryLayouts.BITS_32_BEA value layout constant with size of four bytes, and byte order set toByteOrder.BIG_ENDIAN.static final ValueLayoutMemoryLayouts.BITS_32_LEA value layout constant with size of four bytes, and byte order set toByteOrder.LITTLE_ENDIAN.static final ValueLayoutMemoryLayouts.BITS_64_BEA value layout constant with size of eight bytes, and byte order set toByteOrder.BIG_ENDIAN.static final ValueLayoutMemoryLayouts.BITS_64_LEA value layout constant with size of eight bytes, and byte order set toByteOrder.LITTLE_ENDIAN.static final ValueLayoutMemoryLayouts.BITS_8_BEA value layout constant with size of one byte, and byte order set toByteOrder.BIG_ENDIAN.static final ValueLayoutMemoryLayouts.BITS_8_LEA value layout constant with size of one byte, and byte order set toByteOrder.LITTLE_ENDIAN.static final ValueLayoutCLinker.C_CHARThe layout for thecharC typestatic final ValueLayoutCLinker.C_DOUBLEThe layout for thedoubleC typestatic final ValueLayoutCLinker.C_FLOATThe layout for thefloatC typestatic final ValueLayoutCLinker.C_INTThe layout for theintC typestatic final ValueLayoutCLinker.C_LONGThe layout for thelongC typestatic final ValueLayoutCLinker.C_LONG_LONGThe layout for thelong longC type.static final ValueLayoutCLinker.C_POINTERTheT*native type.static final ValueLayoutCLinker.C_SHORTThe layout for theshortC typestatic final ValueLayoutMemoryLayouts.JAVA_BYTEA value layout constant whose size is the same as that of a Javabyte, and byte order set toByteOrder.nativeOrder().static final ValueLayoutMemoryLayouts.JAVA_CHARA value layout constant whose size is the same as that of a Javachar, and byte order set toByteOrder.nativeOrder().static final ValueLayoutMemoryLayouts.JAVA_DOUBLEA value layout constant whose size is the same as that of a Javadouble, and byte order set toByteOrder.nativeOrder().static final ValueLayoutMemoryLayouts.JAVA_FLOATA value layout constant whose size is the same as that of a Javafloat, and byte order set toByteOrder.nativeOrder().static final ValueLayoutMemoryLayouts.JAVA_INTA value layout constant whose size is the same as that of a Javaint, and byte order set toByteOrder.nativeOrder().static final ValueLayoutMemoryLayouts.JAVA_LONGA value layout constant whose size is the same as that of a Javalong, and byte order set toByteOrder.nativeOrder().static final 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.valueLayout(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 MemorySegmentSegmentAllocator.allocate(ValueLayout layout, byte value) Allocate a block of memory with given layout and initialize it with given byte value.default MemorySegmentSegmentAllocator.allocate(ValueLayout layout, char value) Allocate a block of memory with given layout and initialize it with given char value.default MemorySegmentSegmentAllocator.allocate(ValueLayout layout, double value) Allocate a block of memory with given layout and initialize it with given double value.default MemorySegmentSegmentAllocator.allocate(ValueLayout layout, float value) Allocate a block of memory with given layout and initialize it with given float value.default MemorySegmentSegmentAllocator.allocate(ValueLayout layout, int value) Allocate a block of memory with given layout and initialize it with given int value.default MemorySegmentSegmentAllocator.allocate(ValueLayout layout, long value) Allocate a block of memory with given layout and initialize it with given long value.default MemorySegmentSegmentAllocator.allocate(ValueLayout layout, short value) Allocate a block of memory with given layout and initialize it with given short value.default MemorySegmentSegmentAllocator.allocate(ValueLayout layout, Addressable value) Allocate a block of memory with given layout and initialize it with given address value (expressed as anAddressableinstance).default MemorySegmentSegmentAllocator.allocateArray(ValueLayout elementLayout, byte[] array) Allocate a block of memory with given layout and initialize it with given byte array.default MemorySegmentSegmentAllocator.allocateArray(ValueLayout elementLayout, char[] array) Allocate a block of memory with given layout and initialize it with given char array.default MemorySegmentSegmentAllocator.allocateArray(ValueLayout elementLayout, double[] array) Allocate a block of memory with given layout and initialize it with given double array.default MemorySegmentSegmentAllocator.allocateArray(ValueLayout elementLayout, float[] array) Allocate a block of memory with given layout and initialize it with given float array.default MemorySegmentSegmentAllocator.allocateArray(ValueLayout elementLayout, int[] array) Allocate a block of memory with given layout and initialize it with given int array.default MemorySegmentSegmentAllocator.allocateArray(ValueLayout elementLayout, long[] array) Allocate a block of memory with given layout and initialize it with given long array.default MemorySegmentSegmentAllocator.allocateArray(ValueLayout elementLayout, short[] array) Allocate a block of memory with given layout and initialize it with given short array.default MemorySegmentSegmentAllocator.allocateArray(ValueLayout elementLayout, Addressable[] array) Allocate a block of memory 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.