writeHexadecimalUnsignedLong
Writes long to this sink in hexadecimal form (i.e., as a string in base 16).
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.
Samples
import kotlinx.io.*
import kotlin.test.*
fun main() {
//sampleStart
val buffer = Buffer()
buffer.writeHexadecimalUnsignedLong(10)
assertEquals("a", buffer.readString())
buffer.writeHexadecimalUnsignedLong(-10)
assertEquals("fffffffffffffff6", buffer.readString())
//sampleEnd
}