Top Description Methods
org.lwjgl.util.mapped

public @Interface MappedField

extends Annotation
Annotations
@Retention:RUNTIME
@Target:FIELD
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

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. java.nio.ByteBuffer fields are required to have this annotation with a hardcoded byte length.
Author
Riven

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the field byte length
byteLength
()

Specifies the field byte length.

public long

Returns:

the field byte offset
byteOffset
()

Specifies the field byte offset within the mapped object.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

byteLengthback to summary
public long byteLength()

Specifies the field byte length. Required for java.nio.ByteBuffer fields.

Returns:long

the field byte length

byteOffsetback to summary
public long byteOffset()

Specifies the field byte offset within the mapped object.

Returns:long

the field byte offset