C# Class Universal.Torrent.Client.PieceWriter.PieceWriter

Inheritance: IPieceWriter, IDisposable
Mostrar archivo Open project: haroldma/Universal.Torrent Class Usage Examples

Public Methods

Method Description
CancelOperations ( TorrentFile file ) : void
Close ( TorrentFile file ) : void
Dispose ( ) : void
Exists ( TorrentFile file ) : bool
Flush ( TorrentFile file ) : void
Move ( TorrentFile torrentFile, StorageFolder newPath, bool ignoreExisting ) : void
Read ( TorrentFile file, long offset, byte buffer, int bufferOffset, int count ) : int
Write ( TorrentFile file, long offset, byte buffer, int bufferOffset, int count ) : void

Private Methods

Method Description
Close ( IList files ) : void
Flush ( IList files ) : void
Move ( StorageFolder newRoot, IList files, bool ignoreExisting ) : void
Read ( IList files, long offset, byte buffer, int bufferOffset, int count, int pieceLength, long torrentSize ) : bool
ReadBlock ( IList files, int piece, int blockIndex, byte buffer, int bufferOffset, int pieceLength, long torrentSize ) : bool
Write ( IList files, long offset, byte buffer, int bufferOffset, int count, int pieceLength, long torrentSize ) : void

Method Details

CancelOperations() public method

public CancelOperations ( TorrentFile file ) : void
file TorrentFile
return void

Close() public abstract method

public abstract Close ( TorrentFile file ) : void
file TorrentFile
return void

Dispose() public method

public Dispose ( ) : void
return void

Exists() public abstract method

public abstract Exists ( TorrentFile file ) : bool
file TorrentFile
return bool

Flush() public abstract method

public abstract Flush ( TorrentFile file ) : void
file TorrentFile
return void

Move() public abstract method

public abstract Move ( TorrentFile torrentFile, StorageFolder newPath, bool ignoreExisting ) : void
torrentFile TorrentFile
newPath Windows.Storage.StorageFolder
ignoreExisting bool
return void

Read() public abstract method

public abstract Read ( TorrentFile file, long offset, byte buffer, int bufferOffset, int count ) : int
file TorrentFile
offset long
buffer byte
bufferOffset int
count int
return int

Write() public abstract method

public abstract Write ( TorrentFile file, long offset, byte buffer, int bufferOffset, int count ) : void
file TorrentFile
offset long
buffer byte
bufferOffset int
count int
return void