Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)
@ExperimentalUnsignedTypes inline class UInt :
Comparable<UInt>
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Performs a bitwise AND operation between the two values.
infix fun and(other: UInt): UInt
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
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.
operator fun compareTo(other: UByte): Int
operator fun compareTo(other: UShort): Int
operator fun compareTo(other: UInt): Int
operator fun compareTo(other: ULong): Int
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Divides this value by the other value.
operator fun div(other: UByte): UInt
operator fun div(other: UShort): UInt
operator fun div(other: UInt): UInt
operator fun div(other: ULong): ULong
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Inverts the bits in this value.
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Subtracts the other value from this value.
operator fun minus(other: UByte): UInt
operator fun minus(other: UShort): UInt
operator fun minus(other: UInt): UInt
operator fun minus(other: ULong): ULong
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Performs a bitwise OR operation between the two values.
infix fun or(other: UInt): UInt
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Adds the other value to this value.
operator fun plus(other: UByte): UInt
operator fun plus(other: UShort): UInt
operator fun plus(other: UInt): UInt
operator fun plus(other: ULong): ULong
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Creates a range from this value to the specified other value.
operator fun rangeTo(other: UInt): UIntRange
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Calculates the remainder of dividing this value by the other value.
operator fun rem(other: UByte): UInt
operator fun rem(other: UShort): UInt
operator fun rem(other: UInt): UInt
operator fun rem(other: ULong): ULong
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Shifts this value left by the bitCount number of bits.
infix fun shl(bitCount: Int): UInt
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Shifts this value right by the bitCount number of bits, filling the leftmost bits with zeros.
infix fun shr(bitCount: Int): UInt
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Multiplies this value by the other value.
operator fun times(other: UByte): UInt
operator fun times(other: UShort): UInt
operator fun times(other: UInt): UInt
operator fun times(other: ULong): ULong
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Returns a string representation of the object.
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Performs a bitwise XOR operation between the two values.
infix fun xor(other: UInt): UInt
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
A constant holding the maximum value an instance of UInt can have.
const val MAX_VALUE: UInt
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
A constant holding the minimum value an instance of UInt can have.
const val MIN_VALUE: UInt
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
The number of bits used to represent an instance of UInt in a binary form.
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
The number of bytes used to represent an instance of UInt in a binary form.
const val SIZE_BYTES: Int
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Ensures that this value is not less than the specified minimumValue.
fun UInt.coerceAtLeast(minimumValue: UInt): UInt
fun <T : Comparable<T>> T.coerceAtLeast(minimumValue: T): T
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Ensures that this value is not greater than the specified maximumValue.
fun UInt.coerceAtMost(maximumValue: UInt): UInt
fun <T : Comparable<T>> T.coerceAtMost(maximumValue: T): T
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Ensures that this value lies in the specified range minimumValue..maximumValue.
fun UInt.coerceIn(
minimumValue: UInt,
maximumValue: UInt
): UInt
fun <T : Comparable<T>> T.coerceIn(
minimumValue: T?,
maximumValue: T?
): T
Ensures that this value lies in the specified range.
fun UInt.coerceIn(range: ClosedRange<UInt>): UInt
fun <T : Comparable<T>> T.coerceIn(
range: ClosedFloatingPointRange<T>
): T
fun <T : Comparable<T>> T.coerceIn(range: ClosedRange<T>): T
Platform and version requirements: Native (1.3)
fun <R : Any> UInt.convert(): R
Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)
Returns a progression from this value down to the specified to value with the step -1.
infix fun UInt.downTo(to: UInt): UIntProgression
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
Creates a range from this Comparable value to the specified that value.
operator fun <T : Comparable<T>> T.rangeTo(
that: T
): ClosedRange<T>
Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)
Returns a string representation of this Int value in the specified radix.
fun UInt.toString(radix: Int): String
Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)
Returns a range from this value up to but excluding the specified to value.
infix fun UInt.until(to: UInt): UIntRange