ByteWriteChannel
Channel for asynchronous writing of sequences of bytes. This is a single-writer channel.
Operations on this channel cannot be invoked concurrently, unless explicitly specified otherwise in the description. Exceptions are close and flush.
Inheritors
Properties
Functions
Converts the current ByteWriteChannel
instance into a RawSink
.
Wraps this channel to execute the provided action when closed using flushAndClose()
.
Await for desiredSpace will be available for write and invoke block function providing Memory instance and the corresponding range suitable for wiring in the memory. The block function should return number of bytes were written, possibly 0.
Writes a 64-bit floating-point value to the current ByteWriteChannel.
Writes a 32-bit floating-point value to the current ByteWriteChannel.
Writes the entire source contents to the ByteChannel. Prevents memory exhaustion by waiting for buffer to flush.