Package org.lwjgl.util.mapped
Annotation Type MappedField
This annotation can be used on fields of
MappedObject
subclasses,
to manually specify byte offsets and lengths. This is useful when the
mapped fields require custom alignment. ByteBuffer
fields are required to have this annotation with a hardcoded byte length.- Author:
- Riven
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionlong
Specifies the field byte length.long
Specifies the field byte offset within the mapped object.
-
Element Details
-
byteOffset
long byteOffsetSpecifies the field byte offset within the mapped object.- Returns:
- the field byte offset
- Default:
- -1L
-
byteLength
long byteLengthSpecifies the field byte length. Required forByteBuffer
fields.- Returns:
- the field byte length
- Default:
- -1L
-