UInt (original) (raw)
Types
Functions
Performs a bitwise AND operation between the two values.
Ensures that this value is not less than the specified minimumValue.
Ensures that this value is not greater than the specified maximumValue.
Ensures that this value lies in the specified range.
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.
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.
Counts the number of consecutive most significant bits that are zero in the binary representation of this UInt number.
Counts the number of set bits in the binary representation of this UInt number.
Counts the number of consecutive least significant bits that are zero in the binary representation of this UInt number.
inline operator fun dec(): UInt
Returns this value decremented by one.
Divides this value by the other value, truncating the result to an integer that is closer to zero.
Returns a progression from this value down to and including the specified to value with the step -1.
Divides this value by the other value, flooring the result to an integer that is closer to negative infinity.
inline operator fun inc(): UInt
Returns this value incremented by one.
Inverts the bits in this value.
Subtracts the other value from this value.
Calculates the remainder of flooring division of this value (dividend) by the other value (divisor).
Performs a bitwise OR operation between the two values.
Adds the other value to this value.
Creates a range from this value to the specified other value.
Creates a range from this value up to but excluding the specified other value.
Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
Rotates the binary representation of this UInt number left by the specified bitCount number of bits. The most significant bits pushed out from the left side reenter the number as the least significant bits on the right side.
Rotates the binary representation of this UInt number right by the specified bitCount number of bits. The least significant bits pushed out from the right side reenter the number as the most significant bits on the left side.
infix inline fun shl(bitCount: Int): UInt
Shifts this value left by the bitCount number of bits.
infix inline fun shr(bitCount: Int): UInt
Shifts this value right by the bitCount number of bits, filling the leftmost bits with zeros.
Returns a number having a single bit set in the position of the most significant set bit of this UInt number, or zero, if this number is zero.
Returns a number having a single bit set in the position of the least significant set bit of this UInt number, or zero, if this number is zero.
Multiplies this value by the other value.
Formats this UInt
value using the specified format.
Returns a string representation of this Int value in the specified radix.
Returns a range from this value up to but excluding the specified to value.
Performs a bitwise XOR operation between the two values.