setBits

fun Int.setBits(bits: Int): Int

Returns the integer this with the bits set


fun Int.setBits(bits: Int, set: Boolean): Int

Returns the integer this with the bits set or unset depending on the set parameter