Add missing unsigned array constructors (from size)
#KT-25961 Fixed
This commit is contained in:
@@ -14,6 +14,9 @@ public inline class UIntArray
|
||||
@PublishedApi
|
||||
internal constructor(private val storage: IntArray) : Collection<UInt> {
|
||||
|
||||
/** Creates a new array of the specified [size], with all elements initialized to zero. */
|
||||
public constructor(size: Int) : this(IntArray(size))
|
||||
|
||||
/** Returns the array element at the given [index]. This method can be called using the index operator. */
|
||||
public operator fun get(index: Int): UInt = storage[index].toUInt()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user