|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=FIELD) public @interface 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.
Optional Element Summary | |
---|---|
long |
byteLength
Specifies the field byte length. |
long |
byteOffset
Specifies the field byte offset within the mapped object. |
public abstract long byteOffset
public abstract long byteLength
ByteBuffer
fields.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |