[ Web Proxy ]
URL:
Viewing: https://docs.oracle.com/en/java/javase/27/docs/api/java.base/java/lang/foreign/ValueLayout.html [Back]  [Original]

ValueLayout (Java SE 27 & JDK 27)
Contents  Sort member details in lexicographical order [Sort member details in lexicographical order]
  1. Description
  2. Nested Class Summary
  3. Field Summary
  4. Method Summary
  5. Field Details
    1. ADDRESS
    2. JAVA_BYTE
    3. JAVA_BOOLEAN
    4. JAVA_CHAR
    5. JAVA_SHORT
    6. JAVA_INT
    7. JAVA_LONG
    8. JAVA_FLOAT
    9. JAVA_DOUBLE
    10. ADDRESS_UNALIGNED
    11. JAVA_CHAR_UNALIGNED
    12. JAVA_SHORT_UNALIGNED
    13. JAVA_INT_UNALIGNED
    14. JAVA_LONG_UNALIGNED
    15. JAVA_FLOAT_UNALIGNED
    16. JAVA_DOUBLE_UNALIGNED
  6. Method Details
    1. order()
    2. withOrder(ByteOrder)
    3. withoutName()
    4. carrier()
    5. withName(String)
    6. withByteAlignment(long)
    7. varHandle()
Hide sidebar Hide sidebar [Hide sidebar]Show sidebar [Show sidebar] Show sidebar

Interface ValueLayout

All Superinterfaces:
MemoryLayout
All Known Subinterfaces:
AddressLayout, ValueLayout.OfBoolean, ValueLayout.OfByte, ValueLayout.OfChar, ValueLayout.OfDouble, ValueLayout.OfFloat, ValueLayout.OfInt, ValueLayout.OfLong, ValueLayout.OfShort

A layout that models values of basic data types. Examples of values modeled by a value layout are integral values (either signed or unsigned), floating-point values and address values.

Each value layout has a size, an alignment (both expressed in bytes), a byte order, and a carrier, that is, the Java type that should be used when accessing a region of memory using the value layout.

This class defines useful value layout constants for Java primitive types and addresses.

API Note:
Some characteristics of the Java layout constants are platform-dependent. For instance, the byte order of these constants is set to the native byte order, thus making it easy to work with other APIs, such as arrays and ByteBuffer.
Implementation Requirements:
implementing classes and subclasses are immutable, thread-safe and value-based.
Sealed Class Hierarchy Graph:
Sealed class hierarchy graph for ValueLayout [Sealed class hierarchy graph for ValueLayout]Sealed class hierarchy graph for ValueLayout [Sealed class hierarchy graph for ValueLayout]
Since:
22


Web Proxy Viewer  |  New URL  |  Original Page