Uses of Class
java.lang.foreign.ValueLayout.OfChar
Packages that use ValueLayout.OfCharPREVIEW
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of ValueLayout.OfCharPREVIEW in java.lang.foreign
Fields in java.lang.foreign declared as ValueLayout.OfCharPREVIEWModifier and TypeFieldDescriptionstatic final ValueLayout.OfCharPREVIEWValueLayout.JAVA_CHARA value layout constant whose size is the same as that of a Javachar, bit alignment set to 16, and byte order set toByteOrder.nativeOrder().Methods in java.lang.foreign that return ValueLayout.OfCharPREVIEWMethods in java.lang.foreign with parameters of type ValueLayout.OfCharPREVIEWModifier and TypeMethodDescriptiondefault MemorySegmentPREVIEWSegmentAllocator.allocate(ValueLayout.OfCharPREVIEW layout, char value) Allocates a memory segment with the given layout and initializes it with the given char value.default MemorySegmentPREVIEWSegmentAllocator.allocateArray(ValueLayout.OfCharPREVIEW elementLayout, char... elements) Allocates a memory segment with the given layout and initializes it with the given char elements.charMemoryAddress.get(ValueLayout.OfCharPREVIEW layout, long offset) Reads a char from this address at the given offset, with the given layout.default charMemorySegment.get(ValueLayout.OfCharPREVIEW layout, long offset) Reads a char from this segment at the given offset, with the given layout.charMemoryAddress.getAtIndex(ValueLayout.OfCharPREVIEW layout, long index) Reads a char from this address at the given index, scaled by the given layout size.default charMemorySegment.getAtIndex(ValueLayout.OfCharPREVIEW layout, long index) Reads a char from this segment at the given index, scaled by the given layout size.voidMemoryAddress.set(ValueLayout.OfCharPREVIEW layout, long offset, char value) Writes a char into this address at the given offset, with the given layout.default voidMemorySegment.set(ValueLayout.OfCharPREVIEW layout, long offset, char value) Writes a char into this segment at the given offset, with the given layout.voidMemoryAddress.setAtIndex(ValueLayout.OfCharPREVIEW layout, long index, char value) Writes a char into this address at the given index, scaled by the given layout size.default voidMemorySegment.setAtIndex(ValueLayout.OfCharPREVIEW layout, long index, char value) Writes a char into this segment at the given index, scaled by the given layout size.char[]MemorySegment.toArray(ValueLayout.OfCharPREVIEW elementLayout) Copy the contents of this memory segment into a new char array.