ktor-io / io.ktor.utils.io.core / Buffer / writeByte

writeByte

fun writeByte(value: Byte): Unit

Write a byte value at writePosition (incremented when written successfully).

Exceptions

InsufficientSpaceException - when no free space in the buffer.