MemoryLayoutPREVIEW
, ValueLayoutPREVIEW
ValueLayoutPREVIEW
public static sealed interface ValueLayout.OfByte extends ValueLayoutPREVIEW
OfByte
is a preview API of the Java platform. byte.class
.MemoryLayout.PathElementPREVIEW
ValueLayout.OfBooleanPREVIEW, ValueLayout.OfBytePREVIEW, ValueLayout.OfCharPREVIEW, ValueLayout.OfDoublePREVIEW, ValueLayout.OfFloatPREVIEW, ValueLayout.OfIntPREVIEW, ValueLayout.OfLongPREVIEW, ValueLayout.OfShortPREVIEW
ADDRESS, ADDRESS_UNALIGNED, JAVA_BOOLEAN, JAVA_BYTE, JAVA_CHAR, JAVA_CHAR_UNALIGNED, JAVA_DOUBLE, JAVA_DOUBLE_UNALIGNED, JAVA_FLOAT, JAVA_FLOAT_UNALIGNED, JAVA_INT, JAVA_INT_UNALIGNED, JAVA_LONG, JAVA_LONG_UNALIGNED, JAVA_SHORT, JAVA_SHORT_UNALIGNED
Modifier and Type | Method | Description |
---|---|---|
ValueLayout.OfBytePREVIEW |
withByteAlignment |
Returns a memory layout with the same characteristics as this layout, but with the given alignment constraint (in bytes). |
ValueLayout.OfBytePREVIEW |
withName |
Returns a memory layout with the same characteristics as this layout, but with the given name. |
ValueLayout.OfBytePREVIEW |
withOrder |
Returns a value layout with the same characteristics as this layout, but with the given byte order. |
ValueLayout.OfBytePREVIEW |
withoutName() |
Returns a memory layout with the same characteristics as this layout, but with no name. |
byteAlignment, byteOffset, byteOffsetHandle, byteSize, equals, hashCode, name, select, sliceHandle, toString, varHandle
arrayElementVarHandle, carrier, order
ValueLayout.OfBytePREVIEW withName(String name)
withName
in interface MemoryLayoutPREVIEW
withName
in interface ValueLayoutPREVIEW
name
- the layout name.ValueLayout.OfBytePREVIEW withoutName()
withoutName
in interface MemoryLayoutPREVIEW
withoutName
in interface ValueLayoutPREVIEW
ValueLayout.OfBytePREVIEW withByteAlignment(long byteAlignment)
withByteAlignment
in interface MemoryLayoutPREVIEW
withByteAlignment
in interface ValueLayoutPREVIEW
byteAlignment
- the layout alignment constraint, expressed in bytes.IllegalArgumentException
- if byteAlignment
is not a power of two.ValueLayout.OfBytePREVIEW withOrder(ByteOrder order)
withOrder
in interface ValueLayoutPREVIEW
order
- the desired byte order.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/foreign/ValueLayout.OfByte.html
OfByte
when preview features are enabled.