refactor lib structure
This commit is contained in:
@@ -16,7 +16,4 @@ fun ByteArray.normalize(
|
||||
|
||||
fun UByteArray.normalize(
|
||||
order: ByteOrder,
|
||||
): UByteArray = when (order) {
|
||||
BIG_ENDIAN -> this
|
||||
LITTLE_ENDIAN -> reversedArray()
|
||||
}
|
||||
): UByteArray = asByteArray().normalize(order).asUByteArray()
|
||||
|
||||
Reference in New Issue
Block a user