public setBulk ( int i, int newBits ) : void | ||
i | int | first bit to set /// |
newBits | int | the new value of the next 32 bits. Note again that the least-significant bit /// corresponds to bit i, the next-least-significant to i+1, and so on. /// |
return | void |
public void testSetBulk() { BitArray array = new BitArray(64); array.setBulk(32, -65536); for (int i = 0; i < 48; i++) { Assert.IsFalse(array[i]); } for (int i = 48; i < 64; i++) { Assert.IsTrue(array[i]); } }