Uses of Class
jdk.incubator.foreign.ValueLayout
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of ValueLayout in jdk.incubator.foreign
Modifier and TypeClassDescriptionstatic final class
A value layout whose carrier isMemoryAddress.class
.static final class
A value layout whose carrier isboolean.class
.static final class
A value layout whose carrier isbyte.class
.static final class
A value layout whose carrier ischar.class
.static final class
A value layout whose carrier isdouble.class
.static final class
A value layout whose carrier isfloat.class
.static final class
A value layout whose carrier isint.class
.static final class
A value layout whose carrier islong.class
.static final class
A value layout whose carrier isshort.class
.Modifier and TypeMethodDescriptionstatic ValueLayout
MemoryLayout.valueLayout
(Class<?> carrier, ByteOrder order) Creates a value layout of given Java carrier and byte order.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.Modifier and TypeMethodDescriptionstatic void
MemorySegment.copy
(Object srcArray, int srcIndex, MemorySegment dstSegment, ValueLayout dstLayout, long dstOffset, int elementCount) Copies a number of elements from a source array to a destination segment, starting at a given array index, and a given segment offset (expressed in bytes), using the given destination element layout.static void
MemorySegment.copy
(MemorySegment srcSegment, ValueLayout srcLayout, long srcOffset, Object dstArray, int dstIndex, int elementCount) Copies a number of elements from a source segment to a destination array, starting at a given segment offset (expressed in bytes), and a given array index, using the given source element layout.static void
MemorySegment.copy
(MemorySegment srcSegment, ValueLayout srcElementLayout, long srcOffset, MemorySegment dstSegment, ValueLayout dstElementLayout, long dstOffset, long elementCount) Performs a bulk copy from source segment to destination segment.static VarHandle
MemoryHandles.varHandle
(ValueLayout layout) Creates a memory access var handle from given value layout.