write

expect fun write(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 fun write(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.

override fun write(b: Int)(source)

Writes the specified byte to this stream.

Parameters

b

the byte to write.

Throws

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


actual override fun write(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 override fun write(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 fun write(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 fun write(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.