Byte

Represents a 8-bit signed integer. On the JVM, non-nullable values of this type are represented as values of the primitive type byte.

Since Kotlin

1.0

Represents a 8-bit signed integer.

Since Kotlin

1.1

Represents a 8-bit signed integer.

Since Kotlin

1.3

Represents a 8-bit signed integer.

Since Kotlin

1.8

Represents a 8-bit signed integer.

Since Kotlin

1.8

Types

Link copied to clipboard
object Companion
Since Kotlin 1.0
object Companion
Since Kotlin 1.1
object Companion
Since Kotlin 1.3
object Companion
Since Kotlin 1.8
object Companion
Since Kotlin 1.8

Functions

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

Performs a bitwise AND operation between the two values.

Since Kotlin 1.1
Link copied to clipboard
fun Byte.coerceAtLeast(minimumValue: Byte): Byte

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

Since Kotlin 1.0
Link copied to clipboard
fun Byte.coerceAtMost(maximumValue: Byte): Byte

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

Since Kotlin 1.0
Link copied to clipboard
fun Byte.coerceIn(minimumValue: Byte, maximumValue: Byte): Byte

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

Since Kotlin 1.0
Link copied to clipboard
open operator override fun compareTo(other: Byte): Int
operator fun compareTo(other: Double): Int
operator fun compareTo(other: Float): Int
operator fun compareTo(other: Int): Int
operator fun compareTo(other: Long): Int
operator fun compareTo(other: Short): 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.0
open operator override fun compareTo(other: Byte): Int
operator fun compareTo(other: Double): Int
operator fun compareTo(other: Float): Int
operator fun compareTo(other: Int): Int
operator fun compareTo(other: Long): Int
operator fun compareTo(other: Short): 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.1
open operator external override fun compareTo(other: Byte): Int
inline operator fun compareTo(other: Double): Int
inline operator fun compareTo(other: Float): Int
inline operator fun compareTo(other: Int): Int
inline operator fun compareTo(other: Long): Int
inline operator fun compareTo(other: Short): 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.3
open inline operator override fun compareTo(other: Byte): Int
inline operator fun compareTo(other: Double): Int
inline operator fun compareTo(other: Float): Int
inline operator fun compareTo(other: Int): Int
inline operator fun compareTo(other: Long): Int
inline operator fun compareTo(other: Short): 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.8
open inline operator override fun compareTo(other: Byte): Int
inline operator fun compareTo(other: Double): Int
inline operator fun compareTo(other: Float): Int
inline operator fun compareTo(other: Int): Int
inline operator fun compareTo(other: Long): Int
inline operator fun compareTo(other: Short): 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.8
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> Byte.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 Byte number.

Since Kotlin 1.4
Link copied to clipboard
inline fun Byte.countOneBits(): Int

Counts the number of set bits in the binary representation of this Byte number.

Since Kotlin 1.4
Link copied to clipboard

Counts the number of consecutive least significant bits that are zero in the binary representation of this Byte number.

Since Kotlin 1.4
Link copied to clipboard
operator fun dec(): Byte

Returns this value decremented by one.

Since Kotlin 1.0
operator fun dec(): Byte

Returns this value decremented by one.

Since Kotlin 1.1
operator external fun dec(): Byte

Returns this value decremented by one.

Since Kotlin 1.3
inline operator fun dec(): Byte

Returns this value decremented by one.

Since Kotlin 1.8
inline operator fun dec(): Byte

Returns this value decremented by one.

Since Kotlin 1.8
Link copied to clipboard
operator fun div(other: Byte): Int
operator fun div(other: Int): Int
operator fun div(other: Long): Long
operator fun div(other: Short): Int

Divides this value by the other value, truncating the result to an integer that is closer to zero.

Since Kotlin 1.0
operator fun div(other: Double): Double
operator fun div(other: Float): Float

Divides this value by the other value.

Since Kotlin 1.0
operator fun div(other: Byte): Int
operator fun div(other: Int): Int
operator fun div(other: Long): Long
operator fun div(other: Short): Int

Divides this value by the other value, truncating the result to an integer that is closer to zero.

Since Kotlin 1.1
operator fun div(other: Double): Double
operator fun div(other: Float): Float

Divides this value by the other value.

Since Kotlin 1.1
inline operator fun div(other: Byte): Int
inline operator fun div(other: Int): Int
inline operator fun div(other: Long): Long
inline operator fun div(other: Short): Int

Divides this value by the other value, truncating the result to an integer that is closer to zero.

Since Kotlin 1.3
inline operator fun div(other: Double): Double
inline operator fun div(other: Float): Float

Divides this value by the other value.

Since Kotlin 1.3
inline operator fun div(other: Byte): Int
inline operator fun div(other: Int): Int
inline operator fun div(other: Long): Long
inline operator fun div(other: Short): Int

Divides this value by the other value, truncating the result to an integer that is closer to zero.

Since Kotlin 1.8
inline operator fun div(other: Double): Double
inline operator fun div(other: Float): Float

Divides this value by the other value.

Since Kotlin 1.8
inline operator fun div(other: Byte): Int
inline operator fun div(other: Int): Int
inline operator fun div(other: Long): Long
inline operator fun div(other: Short): Int

Divides this value by the other value, truncating the result to an integer that is closer to zero.

Since Kotlin 1.8
inline operator fun div(other: Double): Double
inline operator fun div(other: Float): Float

Divides this value by the other value.

Since Kotlin 1.8
Link copied to clipboard
infix fun Byte.downTo(to: Byte): IntProgression
infix fun Byte.downTo(to: Int): IntProgression

Returns a progression from this value down to the specified to value with the step -1.

Since Kotlin 1.0
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.0
open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.1
open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.3
open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.8
open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.8
Link copied to clipboard
inline fun Byte.floorDiv(other: Byte): Int
inline fun Byte.floorDiv(other: Int): Int
inline fun Byte.floorDiv(other: Long): Long
inline fun Byte.floorDiv(other: Short): Int

Divides this value by the other value, flooring the result to an integer that is closer to negative infinity.

Since Kotlin 1.5
Link copied to clipboard
open override fun hashCode(): Int
Since Kotlin 1.1
open override fun hashCode(): Int
Since Kotlin 1.3
open override fun hashCode(): Int
Since Kotlin 1.8
open override fun hashCode(): Int
Since Kotlin 1.8
Link copied to clipboard
operator fun inc(): Byte

Returns this value incremented by one.

Since Kotlin 1.0
operator fun inc(): Byte

Returns this value incremented by one.

Since Kotlin 1.1
operator external fun inc(): Byte

Returns this value incremented by one.

Since Kotlin 1.3
inline operator fun inc(): Byte

Returns this value incremented by one.

Since Kotlin 1.8
inline operator fun inc(): Byte

Returns this value incremented by one.

Since Kotlin 1.8
Link copied to clipboard
inline fun Byte.inv(): Byte

Inverts the bits in this value.

Since Kotlin 1.1
Link copied to clipboard
operator fun minus(other: Byte): Int
operator fun minus(other: Double): Double
operator fun minus(other: Float): Float
operator fun minus(other: Int): Int
operator fun minus(other: Long): Long
operator fun minus(other: Short): Int

Subtracts the other value from this value.

Since Kotlin 1.0
operator fun minus(other: Byte): Int
operator fun minus(other: Double): Double
operator fun minus(other: Float): Float
operator fun minus(other: Int): Int
operator fun minus(other: Long): Long
operator fun minus(other: Short): Int

Subtracts the other value from this value.

Since Kotlin 1.1
inline operator fun minus(other: Byte): Int
inline operator fun minus(other: Double): Double
inline operator fun minus(other: Float): Float
inline operator fun minus(other: Int): Int
inline operator fun minus(other: Long): Long
inline operator fun minus(other: Short): Int

Subtracts the other value from this value.

Since Kotlin 1.3
inline operator fun minus(other: Byte): Int
inline operator fun minus(other: Double): Double
inline operator fun minus(other: Float): Float
inline operator fun minus(other: Int): Int
inline operator fun minus(other: Long): Long
inline operator fun minus(other: Short): Int

Subtracts the other value from this value.

Since Kotlin 1.8
inline operator fun minus(other: Byte): Int
inline operator fun minus(other: Double): Double
inline operator fun minus(other: Float): Float
inline operator fun minus(other: Int): Int
inline operator fun minus(other: Long): Long
inline operator fun minus(other: Short): Int

Subtracts the other value from this value.

Since Kotlin 1.8
Link copied to clipboard
inline fun Byte.mod(other: Byte): Byte
inline fun Byte.mod(other: Int): Int
inline fun Byte.mod(other: Long): Long
inline fun Byte.mod(other: Short): Short

Calculates the remainder of flooring division of this value (dividend) by the other value (divisor).

Since Kotlin 1.5
Link copied to clipboard
inline external fun <R : Number> Number.narrow(): R
Since Kotlin 1.3
Link copied to clipboard
infix inline fun Byte.or(other: Byte): Byte

Performs a bitwise OR operation between the two values.

Since Kotlin 1.1
Link copied to clipboard
operator fun plus(other: Byte): Int
operator fun plus(other: Double): Double
operator fun plus(other: Float): Float
operator fun plus(other: Int): Int
operator fun plus(other: Long): Long
operator fun plus(other: Short): Int

Adds the other value to this value.

Since Kotlin 1.0
operator fun plus(other: Byte): Int
operator fun plus(other: Double): Double
operator fun plus(other: Float): Float
operator fun plus(other: Int): Int
operator fun plus(other: Long): Long
operator fun plus(other: Short): Int

Adds the other value to this value.

Since Kotlin 1.1
inline operator fun plus(other: Byte): Int
inline operator fun plus(other: Double): Double
inline operator fun plus(other: Float): Float
inline operator fun plus(other: Int): Int
inline operator fun plus(other: Long): Long
inline operator fun plus(other: Short): Int

Adds the other value to this value.

Since Kotlin 1.3
inline operator fun plus(other: Byte): Int
inline operator fun plus(other: Double): Double
inline operator fun plus(other: Float): Float
inline operator fun plus(other: Int): Int
inline operator fun plus(other: Long): Long
inline operator fun plus(other: Short): Int

Adds the other value to this value.

Since Kotlin 1.8
inline operator fun plus(other: Byte): Int
inline operator fun plus(other: Double): Double
inline operator fun plus(other: Float): Float
inline operator fun plus(other: Int): Int
inline operator fun plus(other: Long): Long
inline operator fun plus(other: Short): Int

Adds the other value to this value.

Since Kotlin 1.8
Link copied to clipboard
operator fun rangeTo(other: Byte): IntRange
operator fun rangeTo(other: Int): IntRange
operator fun rangeTo(other: Long): LongRange
operator fun rangeTo(other: Short): IntRange

Creates a range from this value to the specified other value.

Since Kotlin 1.0
operator fun rangeTo(other: Byte): IntRange
operator fun rangeTo(other: Int): IntRange
operator fun rangeTo(other: Long): LongRange
operator fun rangeTo(other: Short): IntRange

Creates a range from this value to the specified other value.

Since Kotlin 1.1
operator fun rangeTo(other: Byte): IntRange
operator fun rangeTo(other: Int): IntRange
operator fun rangeTo(other: Long): LongRange
operator fun rangeTo(other: Short): IntRange

Creates a range from this value to the specified other value.

Since Kotlin 1.3
operator fun rangeTo(other: Byte): IntRange
operator fun rangeTo(other: Int): IntRange
operator fun rangeTo(other: Long): LongRange
operator fun rangeTo(other: Short): IntRange

Creates a range from this value to the specified other value.

Since Kotlin 1.8
operator fun rangeTo(other: Byte): IntRange
operator fun rangeTo(other: Int): IntRange
operator fun rangeTo(other: Long): LongRange
operator fun rangeTo(other: Short): IntRange

Creates a range from this value to the specified other value.

Since Kotlin 1.8
Link copied to clipboard
operator fun rangeUntil(other: Byte): IntRange
operator fun rangeUntil(other: Int): IntRange
operator fun rangeUntil(other: Long): LongRange
operator fun rangeUntil(other: Short): IntRange

Creates a range from this value up to but excluding the specified other value.

Since Kotlin 1.9
operator fun rangeUntil(other: Byte): IntRange
operator fun rangeUntil(other: Int): IntRange
operator fun rangeUntil(other: Long): LongRange
operator fun rangeUntil(other: Short): IntRange

Creates a range from this value up to but excluding the specified other value.

Since Kotlin 1.9
operator fun rangeUntil(other: Byte): IntRange
operator fun rangeUntil(other: Int): IntRange
operator fun rangeUntil(other: Long): LongRange
operator fun rangeUntil(other: Short): IntRange

Creates a range from this value up to but excluding the specified other value.

Since Kotlin 1.9
operator fun rangeUntil(other: Byte): IntRange
operator fun rangeUntil(other: Int): IntRange
operator fun rangeUntil(other: Long): LongRange
operator fun rangeUntil(other: Short): IntRange

Creates a range from this value up to but excluding the specified other value.

Since Kotlin 1.9
operator fun rangeUntil(other: Byte): IntRange
operator fun rangeUntil(other: Int): IntRange
operator fun rangeUntil(other: Long): LongRange
operator fun rangeUntil(other: Short): IntRange

Creates a range from this value up to but excluding the specified other value.

Since Kotlin 1.9
Link copied to clipboard
operator fun rem(other: Byte): Int
operator fun rem(other: Double): Double
operator fun rem(other: Float): Float
operator fun rem(other: Int): Int
operator fun rem(other: Long): Long
operator fun rem(other: Short): Int

Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).

Since Kotlin 1.1
operator fun rem(other: Byte): Int
operator fun rem(other: Double): Double
operator fun rem(other: Float): Float
operator fun rem(other: Int): Int
operator fun rem(other: Long): Long
operator fun rem(other: Short): Int

Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).

Since Kotlin 1.1
inline operator fun rem(other: Byte): Int
inline operator fun rem(other: Double): Double
inline operator fun rem(other: Float): Float
inline operator fun rem(other: Int): Int
inline operator fun rem(other: Long): Long
inline operator fun rem(other: Short): Int

Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).

Since Kotlin 1.3
inline operator fun rem(other: Byte): Int
inline operator fun rem(other: Double): Double
inline operator fun rem(other: Float): Float
inline operator fun rem(other: Int): Int
inline operator fun rem(other: Long): Long
inline operator fun rem(other: Short): Int

Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).

Since Kotlin 1.8
inline operator fun rem(other: Byte): Int
inline operator fun rem(other: Double): Double
inline operator fun rem(other: Float): Float
inline operator fun rem(other: Int): Int
inline operator fun rem(other: Long): Long
inline operator fun rem(other: Short): Int

Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).

Since Kotlin 1.8
Link copied to clipboard
fun Byte.rotateLeft(bitCount: Int): Byte

Rotates the binary representation of this Byte 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.

Since Kotlin 1.6
Link copied to clipboard
fun Byte.rotateRight(bitCount: Int): Byte

Rotates the binary representation of this Byte 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.

Since Kotlin 1.6
Link copied to clipboard
inline external fun <R : Number> Number.signExtend(): R
Since Kotlin 1.3
Link copied to clipboard

Returns a number having a single bit set in the position of the most significant set bit of this Byte number, or zero, if this number is zero.

Since Kotlin 1.4
Link copied to clipboard
inline fun Byte.takeLowestOneBit(): Byte

Returns a number having a single bit set in the position of the least significant set bit of this Byte number, or zero, if this number is zero.

Since Kotlin 1.4
Link copied to clipboard
operator fun times(other: Byte): Int
operator fun times(other: Double): Double
operator fun times(other: Float): Float
operator fun times(other: Int): Int
operator fun times(other: Long): Long
operator fun times(other: Short): Int

Multiplies this value by the other value.

Since Kotlin 1.0
operator fun times(other: Byte): Int
operator fun times(other: Double): Double
operator fun times(other: Float): Float
operator fun times(other: Int): Int
operator fun times(other: Long): Long
operator fun times(other: Short): Int

Multiplies this value by the other value.

Since Kotlin 1.1
inline operator fun times(other: Byte): Int
inline operator fun times(other: Double): Double
inline operator fun times(other: Float): Float
inline operator fun times(other: Int): Int
inline operator fun times(other: Long): Long
inline operator fun times(other: Short): Int

Multiplies this value by the other value.

Since Kotlin 1.3
inline operator fun times(other: Byte): Int
inline operator fun times(other: Double): Double
inline operator fun times(other: Float): Float
inline operator fun times(other: Int): Int
inline operator fun times(other: Long): Long
inline operator fun times(other: Short): Int

Multiplies this value by the other value.

Since Kotlin 1.8
inline operator fun times(other: Byte): Int
inline operator fun times(other: Double): Double
inline operator fun times(other: Float): Float
inline operator fun times(other: Int): Int
inline operator fun times(other: Long): Long
inline operator fun times(other: Short): Int

Multiplies this value by the other value.

Since Kotlin 1.8
Link copied to clipboard
inline fun Byte.toBoolean(): Boolean
Since Kotlin 1.3
Link copied to clipboard
open override fun toByte(): Byte

Returns this value.

Since Kotlin 1.0
open override fun toByte(): Byte

Returns this value.

Since Kotlin 1.1
open inline override fun toByte(): Byte

Returns this value.

Since Kotlin 1.3
open inline override fun toByte(): Byte

Returns this value.

Since Kotlin 1.8
open inline override fun toByte(): Byte

Returns this value.

Since Kotlin 1.8
Link copied to clipboard
open override fun toChar(): Char

Converts this Byte value to Char.

Since Kotlin 1.0
open override fun toChar(): Char

Converts this Byte value to Char.

Since Kotlin 1.1
open external override fun toChar(): Char

Converts this Byte value to Char.

Since Kotlin 1.3
open override fun toChar(): Char

Converts this Byte value to Char.

Since Kotlin 1.8
open override fun toChar(): Char

Converts this Byte value to Char.

Since Kotlin 1.8
Link copied to clipboard
open override fun toDouble(): Double

Converts this Byte value to Double.

Since Kotlin 1.0
open override fun toDouble(): Double

Converts this Byte value to Double.

Since Kotlin 1.1
open external override fun toDouble(): Double

Converts this Byte value to Double.

Since Kotlin 1.3
open override fun toDouble(): Double

Converts this Byte value to Double.

Since Kotlin 1.8
open override fun toDouble(): Double

Converts this Byte value to Double.

Since Kotlin 1.8
Link copied to clipboard
open override fun toFloat(): Float

Converts this Byte value to Float.

Since Kotlin 1.0
open override fun toFloat(): Float

Converts this Byte value to Float.

Since Kotlin 1.1
open external override fun toFloat(): Float

Converts this Byte value to Float.

Since Kotlin 1.3
open override fun toFloat(): Float

Converts this Byte value to Float.

Since Kotlin 1.8
open override fun toFloat(): Float

Converts this Byte value to Float.

Since Kotlin 1.8
Link copied to clipboard
fun Byte.toHexString(format: HexFormat = HexFormat.Default): String

Formats this Byte value using the specified format.

Since Kotlin 1.9
Link copied to clipboard
open override fun toInt(): Int

Converts this Byte value to Int.

Since Kotlin 1.0
open override fun toInt(): Int

Converts this Byte value to Int.

Since Kotlin 1.1
open external override fun toInt(): Int

Converts this Byte value to Int.

Since Kotlin 1.3
open override fun toInt(): Int

Converts this Byte value to Int.

Since Kotlin 1.8
open override fun toInt(): Int

Converts this Byte value to Int.

Since Kotlin 1.8
Link copied to clipboard
open override fun toLong(): Long

Converts this Byte value to Long.

Since Kotlin 1.0
open override fun toLong(): Long

Converts this Byte value to Long.

Since Kotlin 1.1
open external override fun toLong(): Long

Converts this Byte value to Long.

Since Kotlin 1.3
open override fun toLong(): Long

Converts this Byte value to Long.

Since Kotlin 1.8
open override fun toLong(): Long

Converts this Byte value to Long.

Since Kotlin 1.8
Link copied to clipboard
open override fun toShort(): Short

Converts this Byte value to Short.

Since Kotlin 1.0
open override fun toShort(): Short

Converts this Byte value to Short.

Since Kotlin 1.1
open external override fun toShort(): Short

Converts this Byte value to Short.

Since Kotlin 1.3
open override fun toShort(): Short

Converts this Byte value to Short.

Since Kotlin 1.8
open override fun toShort(): Short

Converts this Byte value to Short.

Since Kotlin 1.8
Link copied to clipboard
open override fun toString(): String
Since Kotlin 1.0
open override fun toString(): String
Since Kotlin 1.1
open external override fun toString(): String
Since Kotlin 1.3
open override fun toString(): String
Since Kotlin 1.8
open override fun toString(): String
Since Kotlin 1.8
Link copied to clipboard
expect fun Byte.toString(radix: Int): String

Returns a string representation of this Byte value in the specified radix.

Since Kotlin 1.2
actual inline fun Byte.toString(radix: Int): String

Returns a string representation of this Byte value in the specified radix.

Since Kotlin 1.2
actual inline fun Byte.toString(radix: Int): String

Returns a string representation of this Byte value in the specified radix.

Since Kotlin 1.1
actual inline fun Byte.toString(radix: Int): String

Returns a string representation of this Byte value in the specified radix.

Since Kotlin 1.3
actual fun Byte.toString(radix: Int): String

Returns a string representation of this Byte value in the specified radix.

Since Kotlin 1.8
actual fun Byte.toString(radix: Int): String

Returns a string representation of this Byte value in the specified radix.

Since Kotlin 1.8
Link copied to clipboard
inline fun Byte.toUByte(): UByte

Converts this Byte value to UByte.

Since Kotlin 1.5
Link copied to clipboard
inline fun Byte.toUInt(): UInt

Converts this Byte value to UInt.

Since Kotlin 1.5
Link copied to clipboard
inline fun Byte.toULong(): ULong

Converts this Byte value to ULong.

Since Kotlin 1.5
Link copied to clipboard
inline fun Byte.toUShort(): UShort

Converts this Byte value to UShort.

Since Kotlin 1.5
Link copied to clipboard
operator fun unaryMinus(): Int

Returns the negative of this value.

Since Kotlin 1.0
operator fun unaryMinus(): Int

Returns the negative of this value.

Since Kotlin 1.1
inline operator fun unaryMinus(): Int

Returns the negative of this value.

Since Kotlin 1.3
inline operator fun unaryMinus(): Int

Returns the negative of this value.

Since Kotlin 1.8
inline operator fun unaryMinus(): Int

Returns the negative of this value.

Since Kotlin 1.8
Link copied to clipboard
operator fun unaryPlus(): Int

Returns this value.

Since Kotlin 1.0
operator fun unaryPlus(): Int

Returns this value.

Since Kotlin 1.1
inline operator fun unaryPlus(): Int

Returns this value.

Since Kotlin 1.3
inline operator fun unaryPlus(): Int

Returns this value.

Since Kotlin 1.8
inline operator fun unaryPlus(): Int

Returns this value.

Since Kotlin 1.8
Link copied to clipboard
infix fun Byte.until(to: Byte): IntRange
infix fun Byte.until(to: Int): IntRange
infix fun Byte.until(to: Long): LongRange
infix fun Byte.until(to: Short): IntRange

Returns a range from this value up to but excluding the specified to value.

Since Kotlin 1.0
Link copied to clipboard
infix inline fun Byte.xor(other: Byte): Byte

Performs a bitwise XOR operation between the two values.

Since Kotlin 1.1