binary-streams / loggersoft.kotlin.streams / longBitmask

longBitmask

fun longBitmask(bits: Int): Long

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