Skip to content

IntSize

@JvmInline
@Serializable



value class IntSize(val pair: Long)

An integer width/height pair, packed into a single Long (width in the high 32 bits, height in the low 32 bits) to avoid boxing allocations.

Constructors

IntSize

constructor(pair: Long)
constructor(width: Int, height: Int)

Properties

height

val height: Int

pair

val pair: Long

width

val width: Int

Functions

component1

operator fun component1(): Int

component2

operator fun component2(): Int

toString

open override fun toString(): String