J avolution v5.4 (J2SE 1.6+)

javolution.io
Class Struct.BitField

java.lang.Object
  extended by javolution.io.Struct.Member
      extended by javolution.io.Struct.BitField
Enclosing class:
Struct

public class Struct.BitField
extends Struct.Member

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

Struct.BitField

public Struct.BitField(int nbrOfBits)
Method Detail

longValue

public long longValue()

intValue

public int intValue()

shortValue

public short shortValue()

byteValue

public byte byteValue()

set

public void set(long value)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

J avolution v5.4 (J2SE 1.6+)

Copyright © 2005 - 2009 Javolution.