javolution.io
Class Struct.BitField

Object
  extended by Struct.Member
      extended by Struct.BitField
Enclosing class:
Struct

public class Struct.BitField
extends Struct.Member

This class represents an arbitrary size (unsigned) bit field with no word size constraint (they can straddle words boundaries).


Constructor Summary
Struct.BitField(int nbrOfBits)
           
 
Method Summary
 byte byteValue()
           
 int intValue()
           
 long longValue()
           
 void set(long value)
           
 short shortValue()
           
 String toString()
           
 
Methods inherited from class Struct.Member
bitIndex, bitLength, offset, struct
 
Methods inherited from class 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 String toString()
Overrides:
toString in class Object


Copyright © 2005-2012 Javolution. All Rights Reserved.