FileSink

Append-only output file.

Functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract fun flush()

Flushes buffered bytes to the OS.

Link copied to clipboard
abstract fun write(buffer: ByteArray, offset: Int = 0, length: Int = buffer.size - offset)

Appends length bytes of buffer from offset.