@Test public void offsetMultiByte() { int old = 0; int mask = 0x00ffff0; int newVal = IntUtils.setMaskedBitsLE(old, mask, 2789); assertEquals(0xe50a0, newVal); }
public static int setMaskedBitsLE(int wholeElement, int mask, int value) { return setMaskedBitsLE(wholeElement, mask, value, Integer.bitCount(mask)); }
IntUtils { public static int setMaskedBitsLE(int wholeElement, int mask, int value) { return setMaskedBitsLE(wholeElement, mask, value, Integer.bitCount(mask)); } }
IntUtils { public static int setMaskedBitsLE(int wholeElement, int mask, int value) { return setMaskedBitsLE(wholeElement, mask, value, Integer.bitCount(mask)); } private  IntUtils(); }
IntUtils { public static int setMaskedBitsLE(int wholeElement, int mask, int value) { return setMaskedBitsLE(wholeElement, mask, value, Integer.bitCount(mask)); } private  IntUtils(); static Long unsignedIntToLong(int value); static int setMaskedBits(int wholeElement,int mask, int value); static int getFromMask(int unmasked, int mask); static int setMaskedBitsLE(int wholeElement, int mask, int value); static int setMaskedBitsLE(int wholeElement, int mask, int value, int numBits); static int getFromMaskLE(int unmasked, int mask, int numBits); static int maxValueThatFits(int mask); static int maxSigned(int numBits); static int maxUnsigned(int numBits); }
IntUtils { public static int setMaskedBitsLE(int wholeElement, int mask, int value) { return setMaskedBitsLE(wholeElement, mask, value, Integer.bitCount(mask)); } private  IntUtils(); static Long unsignedIntToLong(int value); static int setMaskedBits(int wholeElement,int mask, int value); static int getFromMask(int unmasked, int mask); static int setMaskedBitsLE(int wholeElement, int mask, int value); static int setMaskedBitsLE(int wholeElement, int mask, int value, int numBits); static int getFromMaskLE(int unmasked, int mask, int numBits); static int maxValueThatFits(int mask); static int maxSigned(int numBits); static int maxUnsigned(int numBits); static final int BYTES; }