Uses of Class
jdk.incubator.foreign.ValueLayout.OfChar
Packages that use ValueLayout.OfChar
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of ValueLayout.OfChar in jdk.incubator.foreign
Fields in jdk.incubator.foreign declared as ValueLayout.OfCharModifier and TypeFieldDescriptionstatic final ValueLayout.OfCharValueLayout.JAVA_CHARA value layout constant whose size is the same as that of a Javachar, bit alignment set to 8, and byte order set toByteOrder.nativeOrder().Methods in jdk.incubator.foreign that return ValueLayout.OfCharMethods in jdk.incubator.foreign with parameters of type ValueLayout.OfCharModifier and TypeMethodDescriptiondefault MemorySegmentSegmentAllocator.allocate(ValueLayout.OfChar layout, char value) Allocate a memory segment with given layout and initialize it with given char value.default MemorySegmentSegmentAllocator.allocateArray(ValueLayout.OfChar elementLayout, char[] array) Allocate a memory segment with given layout and initialize it with given char array.charMemoryAddress.get(ValueLayout.OfChar layout, long offset) Reads a char from this address and offset with given layout.default charMemorySegment.get(ValueLayout.OfChar layout, long offset) Reads a char from this segment and offset with given layout.charMemoryAddress.getAtIndex(ValueLayout.OfChar layout, long index) Reads a char from this address and index, scaled by given layout size.default charMemorySegment.getAtIndex(ValueLayout.OfChar layout, long index) Reads a char from this segment and index, scaled by given layout size.voidMemoryAddress.set(ValueLayout.OfChar layout, long offset, char value) Writes a char to this address instance and offset with given layout.default voidMemorySegment.set(ValueLayout.OfChar layout, long offset, char value) Writes a char to this segment and offset with given layout.voidMemoryAddress.setAtIndex(ValueLayout.OfChar layout, long index, char value) Writes a char to this address instance and index, scaled by given layout size.default voidMemorySegment.setAtIndex(ValueLayout.OfChar layout, long index, char value) Writes a char to this segment and index, scaled by given layout size.char[]MemorySegment.toArray(ValueLayout.OfChar elementLayout) Copy the contents of this memory segment into a fresh char array.