readByte
Removes a byte from this source and returns it.
Throws
when there are no more bytes to read.
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(1, 2, 3, 4))
assertEquals(1, buffer.readByte())
assertEquals(3, buffer.size)
//sampleEnd
}