This commit is contained in:
@@ -77,7 +77,7 @@ fun ByteArray.toIntArray(
|
||||
|
||||
return toList()
|
||||
.chunked(4)
|
||||
.map { it.toInt(order) }
|
||||
.map { it.toByteArray().toInt(order) }
|
||||
.toIntArray()
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ fun ByteArray.toLongArray(
|
||||
|
||||
return toList()
|
||||
.chunked(8)
|
||||
.map { it.toLong(order) }
|
||||
.map { it.toByteArray().toLong(order) }
|
||||
.toLongArray()
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ fun ByteArray.toUIntArray(
|
||||
|
||||
return toList()
|
||||
.chunked(4)
|
||||
.map { it.toUInt(order) }
|
||||
.map { it.toByteArray().toUInt(order) }
|
||||
.toUIntArray()
|
||||
}
|
||||
|
||||
@@ -143,6 +143,6 @@ fun ByteArray.toULongArray(
|
||||
|
||||
return toList()
|
||||
.chunked(8)
|
||||
.map { it.toULong(order) }
|
||||
.map { it.toByteArray().toULong(order) }
|
||||
.toULongArray()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user