Class BitBuffer

java.lang.Object
nom.tam.fits.compression.algorithm.rice.BitBuffer

public class BitBuffer extends Object
A bit wise reader writer around a bytebuffer.
  • Field Details

  • Constructor Details

    • BitBuffer

      public BitBuffer(ByteBuffer writeBuffer)
  • Method Details

    • bitbuffer

      public int bitbuffer()
    • close

      void close()
    • missingBitsInCurrentByte

      public int missingBitsInCurrentByte()
    • movePosition

      public void movePosition(int i)
    • putByte

      public void putByte(byte byteToAdd)
    • putByte

      public void putByte(byte byteToAdd, int bits)
    • putInt

      public void putInt(int i)
      write out int value to the next 4 bytes of the buffer
      Parameters:
      i - integer to write
    • putInt

      public void putInt(int i, int bits)
    • putLong

      public void putLong(long l, int bits)