Uses of Interface
java.lang.foreign.ValueLayout.OfBoolean
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of ValueLayout.OfBooleanPREVIEW in java.lang.foreign
Modifier and TypeFieldDescriptionstatic final ValueLayout.OfBooleanPREVIEW
ValueLayout.JAVA_BOOLEAN
A value layout constant whose size is the same as that of a Javaboolean
, byte alignment set to 1, and byte order set toByteOrder.nativeOrder()
.Modifier and TypeMethodDescriptionValueLayout.OfBoolean.withByteAlignment
(long byteAlignment) Returns a memory layout with the same characteristics as this layout, but with the given alignment constraint (in bytes).Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a value layout with the same characteristics as this layout, but with the given byte order.ValueLayout.OfBoolean.withoutName()
Returns a memory layout with the same characteristics as this layout, but with no name.Modifier and TypeMethodDescriptiondefault boolean
MemorySegment.get
(ValueLayout.OfBooleanPREVIEW layout, long offset) Reads a boolean from this segment at the given offset, with the given layout.default boolean
MemorySegment.getAtIndex
(ValueLayout.OfBooleanPREVIEW layout, long index) Reads a boolean from this segment at the given index, scaled by the given layout size.default void
MemorySegment.set
(ValueLayout.OfBooleanPREVIEW layout, long offset, boolean value) Writes a boolean into this segment at the given offset, with the given layout.default void
MemorySegment.setAtIndex
(ValueLayout.OfBooleanPREVIEW layout, long index, boolean value) Writes a boolean into this segment at the given index, scaled by the given layout size.