getBitInt method

int getBitInt(
  1. int data,
  2. int length,
  3. int shift
)

Implementation

static int getBitInt(int data, int length, int shift) {
  return (data & (((1 << length) - 1) << shift)) >> shift;
}