Class BitStream

java.lang.Object
com.ibm.dtfj.phd.util.BitStream

public final class BitStream extends Object
This class provides a mechanism for writing numbers in a bit stream.
  • Constructor Details

    • BitStream

      public BitStream()
  • Method Details

    • rewind

      public void rewind()
    • clear

      public void clear()
    • writeLongBits

      public void writeLongBits(long n, int len)
    • writeIntBits

      public void writeIntBits(int n, int len)
    • writeIntBits

      public void writeIntBits(int n, int len, int wordOff, int bitOff)
    • nextWord

      public void nextWord(boolean write)
    • compact

      public void compact()
    • getOffset

      public int getOffset()
    • setOffset

      public void setOffset(int offset)
    • readIntBits

      public int readIntBits(int len)
    • readLongBits

      public long readLongBits(int len)
    • readIntBits

      public int readIntBits(int len, int wordOff, int bitOff)
    • memoryUsage

      public int memoryUsage()