C# Класс Universal.Torrent.Client.PieceWriter.PieceWriter

Наследование: IPieceWriter, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CancelOperations() публичный Метод

public CancelOperations ( TorrentFile file ) : void
file TorrentFile
Результат void

Close() публичный абстрактный Метод

public abstract Close ( TorrentFile file ) : void
file TorrentFile
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Exists() публичный абстрактный Метод

public abstract Exists ( TorrentFile file ) : bool
file TorrentFile
Результат bool

Flush() публичный абстрактный Метод

public abstract Flush ( TorrentFile file ) : void
file TorrentFile
Результат void

Move() публичный абстрактный Метод

public abstract Move ( TorrentFile torrentFile, StorageFolder newPath, bool ignoreExisting ) : void
torrentFile TorrentFile
newPath Windows.Storage.StorageFolder
ignoreExisting bool
Результат void

Read() публичный абстрактный Метод

public abstract Read ( TorrentFile file, long offset, byte buffer, int bufferOffset, int count ) : int
file TorrentFile
offset long
buffer byte
bufferOffset int
count int
Результат int

Write() публичный абстрактный Метод

public abstract Write ( TorrentFile file, long offset, byte buffer, int bufferOffset, int count ) : void
file TorrentFile
offset long
buffer byte
bufferOffset int
count int
Результат void