binary-streams / loggersoft.kotlin.streams / kotlin.ByteArray / toUnsigned

toUnsigned

@ExperimentalUnsignedTypes fun ByteArray.toUnsigned(bytes: Int = ULong.SIZE_BYTES, byteOrder: ByteOrder = nativeByteOrder, offset: Int = 0): ULong

Extracts ULong value from this byte array starting from offset with specified bytes count and byteOrder. The bytes should be in range 1..8.