writeAvailable

abstract suspend fun writeAvailable(
    src: ByteArray,
    offset: Int,
    length: Int
): Int

Writes as much as possible and only suspends if buffer is full

abstract suspend fun writeAvailable(src: IoBuffer): Int
abstract suspend fun writeAvailable(src: ByteBuffer): Int