CountedByteWriteChannel
Properties
Functions
Link copied to clipboard
Converts the current ByteWriteChannel
instance into a RawSink
.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Wraps this channel to execute the provided action when closed using flushAndClose()
.
Link copied to clipboard
Link copied to clipboard
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.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Writes a 64-bit floating-point value to the current ByteWriteChannel.
Link copied to clipboard
Writes a 32-bit floating-point value to the current ByteWriteChannel.
Link copied to clipboard
suspend fun ByteWriteChannel.writeFully(value: ByteArray, startIndex: Int = 0, endIndex: Int = value.size)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Writes the entire source contents to the ByteChannel. Prevents memory exhaustion by waiting for buffer to flush.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard