Class DiskManager
Inheritance
Implements
Inherited Members
Namespace: MonoTorrent.Client
Assembly: MonoTorrent.dll
Syntax
public class DiskManager : IDisposable
Properties
CacheBytesUsed
Size of the memory cache in bytes.
Declaration
public long CacheBytesUsed { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
PendingReadBytes
The number of bytes pending being read as the MaximumDiskReadRate rate limit is being exceeded.
Declaration
public int PendingReadBytes { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
PendingWriteBytes
The number of bytes pending being written as the MaximumDiskWriteRate rate limit is being exceeded.
Declaration
public int PendingWriteBytes { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
ReadRate
The amount of data, in bytes, being read per second.
Declaration
public long ReadRate { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
TotalBytesRead
The total bytes which have been read. Excludes bytes read from the cache.
Declaration
public long TotalBytesRead { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
TotalBytesWritten
The total number of bytes which have been written. Excludes bytes written to the cache.
Declaration
public long TotalBytesWritten { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
TotalCacheBytesRead
Total bytes read from the cache.
Declaration
public long TotalCacheBytesRead { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
WriteRate
The amount of data, in bytes, being written per second.
Declaration
public long WriteRate { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
Methods
FlushAsync(ITorrentData)
Iterates over every file in this torrent and flushes any pending data to disk. Typically a TorrentManager will be passed to this method.
Declaration
public Task FlushAsync(ITorrentData manager)
Parameters
| Type | Name | Description |
|---|---|---|
| ITorrentData | manager | The torrent containing the files to flush |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
FlushAsync(ITorrentData, Int32, Int32)
Iterates over every file in this torrent which is contains data from the specified piece and flushes that file to disk. Typically a TorrentManager will be passed to this method.
Declaration
public Task FlushAsync(ITorrentData manager, int startIndex, int endIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| ITorrentData | manager | The torrent containing the files to flush |
| System.Int32 | startIndex | The first index of the piece to flush. |
| System.Int32 | endIndex | The final index of the piece to flush. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
Explicit Interface Implementations
IDisposable.Dispose()
Declaration
void IDisposable.Dispose()