writeDecimalLong
Writes long to this sink in signed decimal form (i.e., as a string in base 10).
Resulting string will not contain leading zeros, except the 0
value itself.
Parameters
long
the long to be written.
Throws
when the sink is closed.
when some I/O error occurs.
Samples
import kotlinx.io.*
import kotlin.test.*
fun main() {
//sampleStart
val buffer = Buffer()
buffer.writeDecimalLong(1024)
buffer.writeString(", ")
buffer.writeDecimalLong(-24)
assertEquals("1024, -24", buffer.readString())
//sampleEnd
}