writeWhile

suspend fun writeWhile(block: (ByteBuffer) -> Boolean): Unit

Overrides ByteWriteChannel.writeWhile