initial commit
All checks were successful
/ publish (push) Successful in 2m39s

This commit is contained in:
2025-07-24 20:24:17 +02:00
commit ded3b31aa4
16 changed files with 819 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package com.infendro.bytearray
enum class ByteOrder {
BIG_ENDIAN {
override fun normalize(
bytes: ByteArray,
): ByteArray {
return bytes
}
},
LITTLE_ENDIAN {
override fun normalize(
bytes: ByteArray,
): ByteArray {
return bytes.reversedArray()
}
};
internal abstract fun normalize(
bytes: ByteArray,
): ByteArray
}