readDouble
Removes eight bytes from this source and returns a floating point number with type Double composed of it according to the big-endian order.
The Double.Companion.fromBits function is used for decoding bytes into Double.
Throws
when there are not enough data to read an unsigned int value.
when the source is closed.
when some I/O error occurs.
Samples
import kotlinx.io.*
import kotlin.test.*
fun main() {
//sampleStart
val buffer = Buffer()
buffer.write(byteArrayOf(64, -2, 36, 12, -97, -56, -13, 35))
assertEquals(123456.78901, buffer.readDouble())
//sampleEnd
}