asRawSink

fun asRawSink(startOffset: Long = 0, closeFileOnClose: Boolean = true): RawSink

Returns a kotlinx.io.RawSink that writes to this file.

Parameters

startOffset

Initial byte offset at which to start writing (defaults to 0L).

closeFileOnClose

Whether closing the returned sink also closes this SmbFile handle.