BufferedWriteStream

expect sealed class BufferedWriteStream : Closeable(source)

A stream for writing data synchronously, buffering any writes until 8192 bytes are accumulated.

See also

Inheritors

A stream for writing data synchronously, buffering any writes until 8192 bytes are accumulated.

See also

actual sealed class BufferedWriteStream : Closeable(source)

A stream for writing data synchronously, buffering any writes until 8192 bytes are accumulated.

See also

Constructors

Link copied to clipboard
protected expect constructor(stream: WriteStream)
protected actual constructor(stream: WriteStream)
protected actual constructor(stream: WriteStream)

Properties

Link copied to clipboard
protected var buf: ByteArray
Link copied to clipboard
protected var count: Int
Link copied to clipboard
protected var out: OutputStream

Functions

Link copied to clipboard
expect open override fun close()

Closes the resource releasing any system resources that may be allocated to this BufferedWriteStream. Subsequent invocations do nothing.

actual open override fun close()

Closes the resource releasing any system resources that may be allocated to this BufferedWriteStream. Subsequent invocations do nothing.

actual open override fun close()

Closes the resource releasing any system resources that may be allocated to this BufferedWriteStream. Subsequent invocations do nothing.

Link copied to clipboard
expect open fun flush()

Flushes any buffered data.

actual open override fun flush()

Flushes any buffered data.

actual open fun flush()

Flushes any buffered data.

Link copied to clipboard
expect fun write(buf: ByteArray)

Writes the entire contents of buf.

expect fun write(buf: ByteArray, offset: Int, len: Int)

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

actual override fun write(buf: ByteArray)

Writes the entire contents of buf.

override fun write(b: Int)

Writes the specified byte to this stream.

actual override fun write(buf: ByteArray, offset: Int, len: Int)

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

actual fun write(buf: ByteArray)

Writes the entire contents of buf.

actual fun write(buf: ByteArray, offset: Int, len: Int)

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