A sink that will write all the bytes it receives to this channel.
A sink that will write all the bytes it receives to this channel. The sink's result is the number of bytes written.
Note: This method does not work well with a channel in non-blocking mode, as it will busy-wait whenever the
channel is not ready for writes. The returned sink should be run within the context of a useBlocking
call for
correct blocking and interruption support.
Optional, overrides how to construct the buffer used to transfer bytes received by the sink to this channel. By default a heap buffer is used, but a direct buffer will usually perform better.
Writes a chunk of bytes.
Writes a chunk of bytes.
Multiple writes may be performed to write the entire chunk.
Writes a list of chunks, in order.
Writes a list of chunks, in order.
Multiple writes may be performed in order to write all the chunks.
A channel that can write bytes from a sequence of buffers.