C# Class PutioFS.Core.PutioFileHandle

Main interface to the contents of the remote file. The file is dowloaded and stored in a local cache file. PutioFileHandle can be used like a read-only file handle to access that cache. Seeking to an offset and reading from there, like a regular file stream, will be identical to reading from the remote file.
Inheritance: IDisposable
Show file Open project: firat/PutioFS Class Usage Examples

Public Properties

Property Type Description
Guid System.Guid
PutioFile PutioFile

Public Methods

Method Description
Close ( ) : void
Dispose ( ) : void
PutioFileHandle ( PutioFile file ) : System
Read ( byte buffer, int buffer_start_index, int max_read_size ) : int
Seek ( long offset ) : long

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Initialize ( ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

PutioFileHandle() public method

public PutioFileHandle ( PutioFile file ) : System
file PutioFile
return System

Read() public method

public Read ( byte buffer, int buffer_start_index, int max_read_size ) : int
buffer byte
buffer_start_index int
max_read_size int
return int

Seek() public method

public Seek ( long offset ) : long
offset long
return long

Property Details

Guid public property

public Guid,System Guid
return System.Guid

PutioFile public property

public PutioFile,PutioFS.Core PutioFile
return PutioFile