openRandomAccessFile

suspend fun openRandomAccessFile(path: String, mode: String = "r", bufferSize: Int = client.config.randomAccessBufferSize): SmbRandomAccessFile

Opens and returns an SmbRandomAccessFile modeled after java.io.RandomAccessFile.

mode accepts "r" (read-only), "rw" (read/write), or "rws" / "rwd" (synchronous read/write).


suspend fun openRandomAccessFile(path: String, mode: SmbRandomAccessMode, bufferSize: Int = client.config.randomAccessBufferSize): SmbRandomAccessFile

Opens and returns an SmbRandomAccessFile with the specified SmbRandomAccessMode.