@ExperimentalUnsignedTypes data class FourBytes
Container class for four bytes, that can then be converted to a Long value, either as big endian or little endian.
FourBytes(big: Byte, bigish: Byte, lowish: Byte, low: Byte, bigEndian: Boolean)FourBytes(uintValue: UInt, bigEndian: Boolean)
Initialize a four byte sequence with a 32 bit unsigned integer, either as big-endian or little-endian. FourBytes(a: Byte, b: Byte, c: Byte, d: Byte)
Container class for four bytes, that can then be converted to a Long value, either as big endian or little endian. |
val a: Byte
first byte |
|
val b: Byte
second byte |
|
val c: Byte
third byte |
|
val d: Byte
fourth byte |
fun getUIntValue(bigEndian: Boolean): UInt
Convert the four byte values to one unsigned Int value. |