# Uses of Interface
java.lang.foreign.ValueLayout.OfBoolean

Packages that use ValueLayout.OfBooleanPREVIEW
Package
Description
java.lang.foreign
Provides low-level access to memory and functions outside the Java runtime.

- ## Uses of ValueLayout.OfBooleanPREVIEW in java.lang.foreign

  Fields in java.lang.foreign declared as ValueLayout.OfBooleanPREVIEW
  Modifier and Type
  Field
  Description
  `static final ValueLayout.OfBooleanPREVIEW`
  ValueLayout.`JAVA_BOOLEAN`
  A value layout constant whose size is the same as that of a Java `boolean`, bit alignment set to 8, and byte order set to `ByteOrder.nativeOrder()`.
  Methods in java.lang.foreign that return ValueLayout.OfBooleanPREVIEW
  Modifier and Type
  Method
  Description
  `ValueLayout.OfBooleanPREVIEW`
  ValueLayout.OfBoolean.`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).
  `ValueLayout.OfBooleanPREVIEW`
  ValueLayout.OfBoolean.`withName(String name)`
  Returns a memory layout of the same type with the same size and alignment constraint as this layout, but with the specified name.
  `ValueLayout.OfBooleanPREVIEW`
  ValueLayout.OfBoolean.`withOrder(ByteOrder order)`
  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 ValueLayout.OfBooleanPREVIEW
  Modifier and Type
  Method
  Description
  `default boolean`
  MemorySegment.`get(ValueLayout.OfBooleanPREVIEW layout, long offset)`
  Reads a boolean from this segment at the given offset, with the given layout.
  `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.