ktor-io / io.ktor.utils.io.nio / java.nio.channels.WritableByteChannel / write

write

fun WritableByteChannel.write(buffer: IoBuffer): Int
Deprecated: Binary compatibility.

Does the same as WritableByteChannel.write but from a IoBuffer instance

fun WritableByteChannel.write(buffer: Buffer): Int
Deprecated: Use write(Memory) instead.

Does the same as WritableByteChannel.write but from a Buffer instance

fun WritableByteChannel.write(source: Memory, sourceOffset: Int = 0, maxLength: Int = source.size32 - sourceOffset): Int

Does the same as WritableByteChannel.write but from a Memory instance