@DSComment("Package priviledge") @DSBan(DSCat.DEFAULT_MODIFIER) @DSGenerator( tool_name = "Doppelganger", tool_version = "2.0",generated_on = "2013-12-30 12:58:04.267 -0500", hash_original_method = "2CE5F24A4C571BEECB25C40400E44908", hash_generated_method = "A3579B97578194B5EA0183D0F747142C" ) fun computeNextElement() { while (true) { if (currentBits !== 0) { mask = currentBits and -currentBits return } else if (++index < bits.length) { currentBits = bits.get(index) } else { mask = 0 return } } }
Assigns mask and index to the next available value , cycling currentBits as necessary .