Returns the alignment constraint associated with this layout, expressed in bits. Layout alignment defines a power of two
A
which is the bit-wise alignment of the layout. If
A <= 8
then
A/8
is the number of bytes that must be aligned for any pointer that correctly points to this layout. Thus:
-
A=8
means unaligned (in the usual sense), which is common in packets.
-
A=64
means word aligned (on LP64), A=32
int aligned, A=16
short aligned, etc.
-
A=512
is the most strict alignment required by the x86/SV ABI (for AVX-512 data).
If no explicit alignment constraint was set on this layout (see
MemoryLayout.withBitAlignment(long)
PREVIEW), then this method returns the
natural alignment constraint (in bits) associated with this layout.
OfLong
when preview features are enabled.