code: public static long reverseBits(final byte value, final JBBPBitNumber bits) {
      return JBBPUtils.reverseBitsInByte(value) >>> (8 - bits.getBitNumber()) & bits.getMask();
    }
docs: Get the reversed bit representation of the value.
  
  @param value the value to be reversed
  @param bits  number of bits to be reversed, must not be null
  @return the reversed value