@ExperimentalUnsignedTypes inline class UInt : Comparable<UInt>
Performs a bitwise AND operation between the two values.
infix fun and(other: UInt): UInt
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
Decrements this value.
operator fun dec(): UInt
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
Increments this value.
operator fun inc(): UInt
Inverts the bits in this value.
fun inv(): UInt
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
Performs a bitwise OR operation between the two values.
infix fun or(other: UInt): UInt
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
Creates a range from this value to the specified other value.
operator fun rangeTo(other: UInt): UIntRange
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
Shifts this value left by the bitCount number of bits.
infix fun shl(bitCount: Int): UInt
Shifts this value right by the bitCount number of bits, filling the leftmost bits with zeros.
infix fun shr(bitCount: Int): UInt
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
Returns a string representation of the object.
fun toString(): String
Returns this value.
fun toUInt(): UInt
Performs a bitwise XOR operation between the two values.
infix fun xor(other: UInt): UInt
A constant holding the maximum value an instance of UInt can have.
const val MAX_VALUE: UInt
A constant holding the minimum value an instance of UInt can have.
const val MIN_VALUE: UInt
The number of bits used to represent an instance of UInt in a binary form.
const val SIZE_BITS: Int
The number of bytes used to represent an instance of UInt in a binary form.
const val SIZE_BYTES: Int
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
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
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
fun <R : Any> UInt.convert(): R
Returns a progression from this value down to the specified to value with the step -1.
infix fun UInt.downTo(to: UInt): UIntProgression
Creates a range from this Comparable value to the specified that value.
operator fun <T : Comparable<T>> T.rangeTo( that: T ): ClosedRange<T>
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html