@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface Array
| Modifier and Type | Required Element and Description |
|---|---|
int |
length
Specifies the array length,
index in accessor methods should be between 0 and length - 1, just like for vanilla Java arrays. |
| Modifier and Type | Optional Element and Description |
|---|---|
int |
elementDontCrossAlignment
Specifies boundary which elements' bytes shouldn't cross, see
Align.dontCross(). |
int |
elementOffsetAlignment
Specifies the alignment of offsets of the elements, see
Align for more information. |
public abstract int length
index in accessor methods should be between 0 and length - 1, just like for vanilla Java arrays. This value should be positive.public abstract int elementOffsetAlignment
Align for more information.
Elements' offsets alignment couldn't be more coarse than the offset alignment of the whole
array field. The Align.DEFAULT value specifies the alignment dependent on the element
type, if it is a Value generated interface, otherwise Align.NO_ALIGNMENT. Values less
than -1 are not allowed.public abstract int elementDontCrossAlignment
Align.dontCross().
Default is Align.NO_ALIGNMENT.Copyright © 2022. All rights reserved.