Companion

object Companion

Properties

Link copied to clipboard
const val DEFAULT_BUFFER_SIZE: Int = 0

Functions

Link copied to clipboard
suspend fun open(share: SmbShare, path: String, mode: SmbRandomAccessMode, bufferSize: Int = DEFAULT_BUFFER_SIZE): SmbRandomAccessFile

Opens the file at path on share with the specified SmbRandomAccessMode and returns an open SmbRandomAccessFile.

suspend fun open(share: SmbShare, path: String, mode: String = "r", bufferSize: Int = DEFAULT_BUFFER_SIZE): SmbRandomAccessFile

Opens the file at path on share with the specified mode string ("r", "rw", "rws", "rwd") and returns an open SmbRandomAccessFile.