Package org.lwjgl.util.mapped
Annotation Type MappedField
-
@Retention(RUNTIME) @Target(FIELD) public @interface MappedField
This annotation can be used on fields ofMappedObjectsubclasses, to manually specify byte offsets and lengths. This is useful when the mapped fields require custom alignment.ByteBufferfields are required to have this annotation with a hardcoded byte length.- Author:
- Riven
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description longbyteLengthSpecifies the field byte length.longbyteOffsetSpecifies the field byte offset within the mapped object.
-
-
-
-
byteLength
long byteLength
Specifies the field byte length. Required forByteBufferfields.- Returns:
- the field byte length
- Default:
- -1L
-
-