binary-streams / loggersoft.kotlin.streams / java.math.BigInteger / toBytes

toBytes

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

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