Smb File
Properties
Functions
Link copied to clipboard
Returns a kotlinx.io.RawSource that reads from this file.
Link copied to clipboard
Closes the file handle on the server (SMB2 CLOSE).
Link copied to clipboard
suspend fun readInto(offset: Long, destination: ByteArray, destinationOffset: Int = 0, length: Int = destination.size - destinationOffset): Int
Reads up to length bytes starting at offset directly into destination at destinationOffset without allocating intermediate byte arrays.
Link copied to clipboard
fun toRandomAccessFile(path: String = "", mode: SmbRandomAccessMode = SmbRandomAccessMode.READ_WRITE, bufferSize: Int = SmbRandomAccessFile.DEFAULT_BUFFER_SIZE): SmbRandomAccessFile
Wraps this open file handle in an SmbRandomAccessFile.