writeAsync

actual suspend fun writeAsync(buf: ByteArray, offset: Int, len: Int)(source)

Writes len number of bytes from buf, starting at index offset.

Parameters

buf

The array of data to write.

offset

The index in buf to start at when writing data.

len

The number of bytes from buf, starting at index offset, to write.

Throws

If an I/O error occurs, or the stream is closed.

IndexOutOfBoundsException

If offset or len are inappropriate.


actual suspend fun writeAsync(buf: ByteArray)(source)

Writes the entire contents of buf.

Parameters

buf

the array of data to write.

Throws

If an I/O error occurs, or the stream is closed.

expect suspend fun writeAsync(buf: ByteArray, offset: Int, len: Int)(source)

Writes len number of bytes from buf, starting at index offset.

Parameters

buf

The array of data to write.

offset

The index in buf to start at when writing data.

len

The number of bytes from buf, starting at index offset, to write.

Throws

If an I/O error occurs, or the stream is closed.

IndexOutOfBoundsException

If offset or len are inappropriate.


expect suspend fun writeAsync(buf: ByteArray)(source)

Writes the entire contents of buf.

Parameters

buf

the array of data to write.

Throws

If an I/O error occurs, or the stream is closed.

actual suspend fun writeAsync(buf: ByteArray, offset: Int, len: Int)(source)

Writes len number of bytes from buf, starting at index offset.

Parameters

buf

The array of data to write.

offset

The index in buf to start at when writing data.

len

The number of bytes from buf, starting at index offset, to write.

Throws

If an I/O error occurs, or the stream is closed.

IndexOutOfBoundsException

If offset or len are inappropriate.


actual suspend fun writeAsync(buf: ByteArray)(source)

Writes the entire contents of buf.

Parameters

buf

the array of data to write.

Throws

If an I/O error occurs, or the stream is closed.