Module openj9.dtfj

Class BitStream


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

      • BitStream

        public BitStream()
    • Method Detail

      • 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()