public void resetNextBits ( final int pLength ) { int max = currentBitIndex + pLength ; while ( currentBitIndex < max ) { int mod = currentBitIndex % BYTE_SIZE ; int length = Math . min ( max - currentBitIndex , BYTE_SIZE - mod ) ; byteTab [ currentBitIndex / BYTE_SIZE ] &= ~ getMask ( mod , length ) ; currentBitIndex += length ; } }
Set to 0 the next N bits