Uses of Interface
java.lang.foreign.MemoryLayout
Packages that use MemoryLayoutPREVIEW
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of MemoryLayoutPREVIEW in java.lang.foreign
Subinterfaces of MemoryLayoutPREVIEW in java.lang.foreignModifier and TypeInterfaceDescriptioninterfacePreview.A compound layout that aggregates multiple member layouts.interfacePreview.A padding layout.interfacePreview.A compound layout that denotes a repetition of a given element layout.interfacePreview.A group layout whose member layouts are laid out one after the other.interfacePreview.A group layout whose member layouts are laid out at the same starting offset.interfacePreview.A layout that models values of basic data types.static interfacePreview.A value layout whose carrier isMemorySegment.class.static interfacePreview.A value layout whose carrier isboolean.class.static interfacePreview.A value layout whose carrier isbyte.class.static interfacePreview.A value layout whose carrier ischar.class.static interfacePreview.A value layout whose carrier isdouble.class.static interfacePreview.A value layout whose carrier isfloat.class.static interfacePreview.A value layout whose carrier isint.class.static interfacePreview.A value layout whose carrier islong.class.static interfacePreview.A value layout whose carrier isshort.class.Methods in java.lang.foreign that return MemoryLayoutPREVIEWModifier and TypeMethodDescriptionSequenceLayout.elementLayout()Returns the element layout associated with this sequence layout.default MemoryLayoutPREVIEWMemoryLayout.select(MemoryLayout.PathElementPREVIEW... elements) Selects the layout from a path rooted in this layout.MemoryLayout.withBitAlignment(long bitAlignment) Returns a memory layout of the same type with the same size and name as this layout, but with the specified alignment constraint (in bits).Returns a memory layout of the same type with the same size and alignment constraint as this layout, but with the specified name.Methods in java.lang.foreign that return types with arguments of type MemoryLayoutPREVIEWModifier 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.Methods in java.lang.foreign with parameters of type MemoryLayoutPREVIEWModifier and TypeMethodDescriptiondefault MemorySegmentPREVIEWSegmentAllocator.allocate(MemoryLayoutPREVIEW layout) Allocates a memory segment with the given layout.default MemorySegmentPREVIEWSegmentAllocator.allocateArray(MemoryLayoutPREVIEW elementLayout, long count) Allocates a memory segment with the given element layout and size.static MemorySegmentPREVIEWMemorySegment.allocateNative(MemoryLayoutPREVIEW layout, SegmentScopePREVIEW scope) Creates a native segment with the given layout and scope.FunctionDescriptor.appendArgumentLayouts(MemoryLayoutPREVIEW... addedLayouts) Returns a function descriptor with the given argument layouts appended to the argument layout array of this function descriptor.FunctionDescriptor.changeReturnLayout(MemoryLayoutPREVIEW newReturn) Returns a function descriptor with the given memory layout as the new return layout.MemorySegment.elements(MemoryLayoutPREVIEW elementLayout) Returns a sequentialStreamover 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 FunctionDescriptorPREVIEWFunctionDescriptor.of(MemoryLayoutPREVIEW resLayout, MemoryLayoutPREVIEW... argLayouts) Creates a function descriptor with the given return and argument layouts.static FunctionDescriptorPREVIEWFunctionDescriptor.ofVoid(MemoryLayoutPREVIEW... argLayouts) Creates a function descriptor with the given argument layouts and no return layout.static SequenceLayoutPREVIEWMemoryLayout.sequenceLayout(long elementCount, MemoryLayoutPREVIEW elementLayout) Creates a sequence layout with the given element layout and element count.static SequenceLayoutPREVIEWMemoryLayout.sequenceLayout(MemoryLayoutPREVIEW elementLayout) Creates a sequence layout with the given element layout and the maximum element count such that it does not overflow along.voidVaList.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 StructLayoutPREVIEWMemoryLayout.structLayout(MemoryLayoutPREVIEW... elements) Creates a struct layout with the given member layouts.static UnionLayoutPREVIEWMemoryLayout.unionLayout(MemoryLayoutPREVIEW... elements) Creates a union layout with the given member layouts.