writeAvailable

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

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

open suspend fun writeAvailable(src: ByteArray): Int
abstract suspend fun writeAvailable(src: ByteBuffer): Int
abstract suspend fun writeAvailable(src: BufferView): Int