SdkByteWriteChannel
A channel for writing a sequence of bytes asynchronously. This is a single writer channel.
Inheritors
Properties
Returns the number of bytes that can be written without suspension. Write operations do not suspend and return immediately when this number is at least the number of bytes requested for write.
Returns the underlying cause the channel was closed with or null
if closed successfully or not yet closed. A failed channel will have a closed cause.
Returns true if channel has been closed. Attempting to write to the channel will throw an exception
Total number of bytes written to the channel.
Functions
Removes exactly byteCount bytes from source and appends them to this. Suspends until all bytes have been written. It is not safe to modify source until this function returns Throws ClosedWriteChannelException if this channel was already closed.
Inherited functions
Convenience function to write as many bytes from source as possible without suspending. Returns the number of bytes that could be written.