This commit is contained in:
@@ -74,7 +74,7 @@ fun UByteArray.toIntArray(
|
||||
|
||||
return toList()
|
||||
.chunked(4)
|
||||
.map { it.toInt(order) }
|
||||
.map { it.toUByteArray().toInt(order) }
|
||||
.toIntArray()
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ fun UByteArray.toLongArray(
|
||||
|
||||
return toList()
|
||||
.chunked(8)
|
||||
.map { it.toLong(order) }
|
||||
.map { it.toUByteArray().toLong(order) }
|
||||
.toLongArray()
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ fun UByteArray.toUIntArray(
|
||||
|
||||
return toList()
|
||||
.chunked(4)
|
||||
.map { it.toUInt(order) }
|
||||
.map { it.toUByteArray().toUInt(order) }
|
||||
.toUIntArray()
|
||||
}
|
||||
|
||||
@@ -140,6 +140,6 @@ fun UByteArray.toULongArray(
|
||||
|
||||
return toList()
|
||||
.chunked(8)
|
||||
.map { it.toULong(order) }
|
||||
.map { it.toUByteArray().toULong(order) }
|
||||
.toULongArray()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user