|
J avolution v5.4 (J2SE 1.6+) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavolution.io.Struct.Member
javolution.io.Struct.BitField
public class Struct.BitField
This class represents an arbitrary size (unsigned) bit field. BitField values are unsigned but the maximum number of bits is 63 to hold in a long value.
Constructor Summary | |
---|---|
Struct.BitField(int nbrOfBits)
|
Method Summary | |
---|---|
byte |
byteValue()
|
int |
intValue()
|
long |
longValue()
|
void |
set(long value)
|
short |
shortValue()
|
java.lang.String |
toString()
|
Methods inherited from class javolution.io.Struct.Member |
---|
bitOffset, bitSize, struct |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Struct.BitField(int nbrOfBits)
Method Detail |
---|
public long longValue()
public int intValue()
public short shortValue()
public byte byteValue()
public void set(long value)
public java.lang.String toString()
toString
in class java.lang.Object
|
J avolution v5.4 (J2SE 1.6+) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |