Uses of Interface
java.lang.foreign.ValueLayout
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of ValueLayout in java.lang.foreign
Modifier and TypeInterfaceDescriptioninterface
A value layout used to model the address of some region of memory.static interface
A value layout whose carrier isboolean.class
.static interface
A value layout whose carrier isbyte.class
.static interface
A value layout whose carrier ischar.class
.static interface
A value layout whose carrier isdouble.class
.static interface
A value layout whose carrier isfloat.class
.static interface
A value layout whose carrier isint.class
.static interface
A value layout whose carrier islong.class
.static interface
A value layout whose carrier isshort.class
.Modifier and TypeMethodDescriptionValueLayout.withByteAlignment
(long byteAlignment) Returns a memory layout with the same characteristics as this layout, but with the given alignment constraint (in bytes).Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a value layout with the same characteristics as this layout, but with the given byte order.ValueLayout.withoutName()
Returns a memory layout with the same characteristics as this layout, but with no name.Modifier and TypeMethodDescriptiondefault MemorySegment
SegmentAllocator.allocateFrom
(ValueLayout elementLayout, MemorySegment source, ValueLayout sourceElementLayout, long sourceOffset, long elementCount) Returns a new memory segment initialized with the contents of the provided segment.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 void
MemorySegment.copy
(MemorySegment srcSegment, ValueLayout srcLayout, long srcOffset, Object dstArray, int dstIndex, int elementCount) Copies a number of elements from a source memory segment to a destination array.static 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 memory segment.