Uses of Interface
java.lang.foreign.MemoryLayout
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of MemoryLayoutPREVIEW in java.lang.foreign
Modifier and TypeClassDescriptionfinal class
Preview.A compound layout that aggregates multiple member layouts.final class
Preview.A compound layout that denotes a repetition of a given element layout.class
Preview.A value layout.static final class
Preview.A value layout whose carrier isMemoryAddress.class
.static final class
Preview.A value layout whose carrier isboolean.class
.static final class
Preview.A value layout whose carrier isbyte.class
.static final class
Preview.A value layout whose carrier ischar.class
.static final class
Preview.A value layout whose carrier isdouble.class
.static final class
Preview.A value layout whose carrier isfloat.class
.static final class
Preview.A value layout whose carrier isint.class
.static final class
Preview.A value layout whose carrier islong.class
.static final class
Preview.A value layout whose carrier isshort.class
.Modifier and TypeMethodDescriptionSequenceLayout.elementLayout()
Returns the element layout associated with this sequence layout.static MemoryLayoutPREVIEW
MemoryLayout.paddingLayout
(long size) Creates a padding layout with the given size.default MemoryLayoutPREVIEW
MemoryLayout.select
(MemoryLayout.PathElementPREVIEW... elements) Selects the layout from a path rooted in this layout.MemoryLayout.withBitAlignment
(long bitAlignment) Returns a memory layout with the same size and name as this layout, but with the specified alignment constraints (in bits).Returns a memory layout with the same size and alignment constraints as this layout, but with the specified name.Modifier and TypeMethodDescriptionFunctionDescriptor.argumentLayouts()
Returns the argument layouts associated with this function descriptor (as an immutable list).GroupLayout.memberLayouts()
Returns the member layouts associated with this group.FunctionDescriptor.returnLayout()
Returns the return layout (if any) associated with this function descriptor.Modifier and TypeMethodDescriptiondefault MemorySegmentPREVIEW
SegmentAllocator.allocate
(MemoryLayoutPREVIEW layout) Allocates a memory segment with the given layout.default MemorySegmentPREVIEW
SegmentAllocator.allocateArray
(MemoryLayoutPREVIEW elementLayout, long count) Allocates a memory segment with the given element layout and size.static MemorySegmentPREVIEW
MemorySegment.allocateNative
(MemoryLayoutPREVIEW layout, MemorySessionPREVIEW session) Creates a native memory segment with the given layout and memory session.FunctionDescriptor.appendArgumentLayouts
(MemoryLayoutPREVIEW... addedLayouts) Returns a function descriptor with the given argument layouts appended to the argument layout array of this function descriptor.FunctionDescriptor.asVariadic
(MemoryLayoutPREVIEW... variadicLayouts) Creates a specialized variadic function descriptor, by appending given variadic layouts to this function descriptor argument layouts.FunctionDescriptor.changeReturnLayout
(MemoryLayoutPREVIEW newReturn) Returns a function descriptor with the given memory layout as the new return layout.MemorySegment.elements
(MemoryLayoutPREVIEW elementLayout) Returns a sequentialStream
over disjoint slices (whose size matches that of the specified layout) in this segment.FunctionDescriptor.insertArgumentLayouts
(int index, MemoryLayoutPREVIEW... addedLayouts) Returns a function descriptor with the given argument layouts inserted at the given index, into the argument layout array of this function descriptor.static FunctionDescriptorPREVIEW
FunctionDescriptor.of
(MemoryLayoutPREVIEW resLayout, MemoryLayoutPREVIEW... argLayouts) Creates a function descriptor with the given return and argument layouts.static FunctionDescriptorPREVIEW
FunctionDescriptor.ofVoid
(MemoryLayoutPREVIEW... argLayouts) Creates a function descriptor with the given argument layouts and no return layout.static SequenceLayoutPREVIEW
MemoryLayout.sequenceLayout
(long elementCount, MemoryLayoutPREVIEW elementLayout) Creates a sequence layout with the given element layout and element count.void
VaList.skip
(MemoryLayoutPREVIEW... layouts) Skips a number of elements with the given memory layouts, and advances this variable argument list's position.MemorySegment.spliterator
(MemoryLayoutPREVIEW elementLayout) Returns a spliterator for this memory segment.static GroupLayoutPREVIEW
MemoryLayout.structLayout
(MemoryLayoutPREVIEW... elements) Creates a struct layout with the given member layouts.static GroupLayoutPREVIEW
MemoryLayout.unionLayout
(MemoryLayoutPREVIEW... elements) Creates a union layout with the given member layouts.