binary-streams / loggersoft.kotlin.streams / intBitmask

intBitmask

fun intBitmask(bits: Int): Int

Returns Int's bit mask with specified bits count. If bits negative or greater than 32 -1 will be returned.