binary-streams / loggersoft.kotlin.streams / kotlin.Byte

Extensions for kotlin.Byte

isBitmask

Returns true when all bits in the mask are set (1).

fun Byte.isBitmask(mask: Int): Boolean

toIntUnsigned

Returns unsigned representation of this.

fun Byte.toIntUnsigned(): Int

utf8Len

Returns total bytes count in the UTF-8 code point by fist this.

fun Byte.utf8Len(): Int