UShort

Since Kotlin

1.5

Types

Link copied to clipboard
object Companion
Since Kotlin 1.5

Functions

Link copied to clipboard
infix inline fun and(other: UShort): UShort

Performs a bitwise AND operation between the two values.

Since Kotlin 1.5
Link copied to clipboard
fun UShort.coerceAtLeast(minimumValue: UShort): UShort

Ensures that this value is not less than the specified minimumValue.

Since Kotlin 1.5
Link copied to clipboard
fun UShort.coerceAtMost(maximumValue: UShort): UShort

Ensures that this value is not greater than the specified maximumValue.

Since Kotlin 1.5
Link copied to clipboard
fun UShort.coerceIn(minimumValue: UShort, maximumValue: UShort): UShort

Ensures that this value lies in the specified range minimumValue..maximumValue.

Since Kotlin 1.5
Link copied to clipboard
inline operator fun compareTo(other: UByte): Int
inline operator fun compareTo(other: UInt): Int
inline operator fun compareTo(other: ULong): Int
open inline operator override fun compareTo(other: UShort): Int

Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.

Since Kotlin 1.5
Link copied to clipboard
infix inline fun <T> Comparable<T>.compareTo(other: T): Int

Compares this object with the specified object for order. Returns zero if this object is equal to the specified other object, a negative number if it's less than other, or a positive number if it's greater than other.

Since Kotlin 1.6
Link copied to clipboard
inline external fun <R : Any> UShort.convert(): R
Since Kotlin 1.3
Link copied to clipboard

Counts the number of consecutive most significant bits that are zero in the binary representation of this