binary-streams / loggersoft.kotlin.streams / kotlin.Long

Extensions for kotlin.Long

toBigIntegerUnsigned

Returns unsigned representation of this value as BigInteger.

fun Long.toBigIntegerUnsigned(): BigInteger

toBytes

Writes this value as bytes to buffer byte array starting from offset with specified byteOrder.

fun Long.toBytes(buffer: ByteArray, bytes: Int = 8, byteOrder: ByteOrder = nativeByteOrder, offset: Int = 0): Unit