binary-streams / loggersoft.kotlin.streams / byteBitmask

byteBitmask

fun byteBitmask(bits: Int): Byte

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