Class BitReader

java.lang.Object
org.yamcs.utils.BitReader

public class BitReader extends Object
BitReader is a wrapper around the ByteBuffer that allows to read individual bits. All the readings are performed from a temporary long;
  • Constructor Details

    • BitReader

      public BitReader(ByteBuffer bb)
      Construct the BitReader as a wrapper around bb
      Parameters:
      bb -
  • Method Details

    • readLong

      public long readLong(int numBits)
    • read

      public int read(int numBits)