us.ihmc.utilities.fixedPointRepresentation
Class BitSetTools

java.lang.Object
  extended by us.ihmc.utilities.fixedPointRepresentation.BitSetTools

public class BitSetTools
extends java.lang.Object


Constructor Summary
BitSetTools()
           
 
Method Summary
static int getByte(java.util.BitSet store, int offset)
           
static long getLong(java.util.BitSet store, int offset, int numberOfBits)
           
static void printBitSet(java.util.BitSet setToPrint)
           
static void putByte(java.util.BitSet store, int offset, int value)
           
static void putLong(long value, java.util.BitSet resultSet, int offset, int numberOfBits)
           
static java.util.BitSet toBitSet(byte[] array, int byteLength)
           
static void toByteArray(java.util.BitSet bitSet, byte[] res, int offset, int byteLength)
           
static byte[] toByteArray(java.util.BitSet bitSet, int byteLength)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitSetTools

public BitSetTools()
Method Detail

getLong

public static long getLong(java.util.BitSet store,
                           int offset,
                           int numberOfBits)

putLong

public static void putLong(long value,
                           java.util.BitSet resultSet,
                           int offset,
                           int numberOfBits)

getByte

public static int getByte(java.util.BitSet store,
                          int offset)

putByte

public static void putByte(java.util.BitSet store,
                           int offset,
                           int value)

toByteArray

public static void toByteArray(java.util.BitSet bitSet,
                               byte[] res,
                               int offset,
                               int byteLength)

toByteArray

public static byte[] toByteArray(java.util.BitSet bitSet,
                                 int byteLength)

toBitSet

public static java.util.BitSet toBitSet(byte[] array,
                                        int byteLength)

printBitSet

public static void printBitSet(java.util.BitSet setToPrint)