asRawSource

fun asRawSource(startOffset: Long = 0, closeFileOnClose: Boolean = true): RawSource

Returns a kotlinx.io.RawSource that reads from this file.

Parameters

startOffset

Initial byte offset from which to start reading (defaults to 0L).

closeFileOnClose

Whether closing the returned source also closes this SmbFile handle.