Uses of Interface
java.lang.foreign.ValueLayout
Packages that use ValueLayoutPREVIEW
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
The
java.lang.invoke package provides low-level primitives for interacting
with the Java Virtual Machine.-
Uses of ValueLayoutPREVIEW in java.lang.foreign
Subinterfaces of ValueLayoutPREVIEW in java.lang.foreignModifier and TypeInterfaceDescriptionstatic 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 ValueLayoutPREVIEWModifier and TypeMethodDescriptionstatic ValueLayoutPREVIEWMemoryLayout.valueLayout(Class<?> carrier, ByteOrder order) Creates a value layout of given Java carrier and byte order.ValueLayout.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.Returns a value layout with the same carrier, alignment constraint and name as this value layout, but with the specified byte order.Methods in java.lang.foreign with parameters of type ValueLayoutPREVIEWModifier and TypeMethodDescriptionstatic voidMemorySegment.copy(MemorySegmentPREVIEW srcSegment, ValueLayoutPREVIEW srcElementLayout, long srcOffset, MemorySegmentPREVIEW dstSegment, ValueLayoutPREVIEW dstElementLayout, long dstOffset, long elementCount) Performs a bulk copy from source segment to destination segment.static voidMemorySegment.copy(MemorySegmentPREVIEW srcSegment, ValueLayoutPREVIEW srcLayout, long srcOffset, Object dstArray, int dstIndex, int elementCount) Copies a number of elements from a source memory segment to a destination array.static voidMemorySegment.copy(Object srcArray, int srcIndex, MemorySegmentPREVIEW dstSegment, ValueLayoutPREVIEW dstLayout, long dstOffset, int elementCount) Copies a number of elements from a source array to a destination memory segment. -
Uses of ValueLayoutPREVIEW in java.lang.invoke
Methods in java.lang.invoke with parameters of type ValueLayoutPREVIEWModifier and TypeMethodDescriptionstatic VarHandleMethodHandles.memorySegmentViewVarHandle(ValueLayoutPREVIEW layout) Preview.Creates a var handle object, which can be used to dereference a memory segmentPREVIEW by viewing its contents as a sequence of the provided value layout.