Package-level declarations

Types

Link copied to clipboard
enum Endian : Enum<Endian>

Functions

Link copied to clipboard
fun getSizeInByte(dataType: KClass<*>): Int
Link copied to clipboard
Link copied to clipboard
inline fun <T> ByteArray.readDataByType(offset: Int, dataCount: Int = 1, endian: Endian = Endian.LITTLE_ENDIAN): List<T>

Multiplatform version of readDataByType.

Link copied to clipboard
fun <T> List<T>.reshape(rows: Int, cols: Int): List<List<T>>
Link copied to clipboard
fun UByteArray.toInt(endian: Endian): Int

fun List<UByte>.toInt(endian: Endian): Int

Converts a List (of size 4) to an Int, taking endianness into account.

Link copied to clipboard

fun List<UByte>.toUInt(endian: Endian): UInt

Converts a List (of size 4) to a UInt, taking endianness into account.

Link copied to clipboard

fun List<UByte>.toULong(endian: Endian): ULong

Converts a List (of size 8) to a ULong, taking endianness into account.