|
JADE v6.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dautelle.util.Struct.Member
This inner class represents the base class for all Struct
members. It allows applications to define additional member types.
For example:
public class MyStruct extends Struct { BitSet bits = new BitSet(256); ... public BitSet extends Member { public BitSet(int nbrBits) { super(1, (nbrBits+7)>>3); } public boolean get(int i) { ... } public void set(int i, boolean value) { ...} } }
Constructor Summary | |
protected |
Struct.Member(int alignment,
int size)
Base constructor for custom member types. |
Method Summary | |
int |
offset()
Returns the offset of this Struct.Member in the
Struct 's byte buffer . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Struct.Member(int alignment, int size)
alignment
- the desired alignment in bytes.size
- the size of this member in bytes.Method Detail |
public final int offset()
Struct.Member
in the
Struct
's byte buffer
.
|
JADE v6.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |