Show / Hide Table of Contents

Class TorrentFile

Inheritance
System.Object
TorrentFile
Implements
System.IEquatable<TorrentFile>
ITorrentFile
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: MonoTorrent
Assembly: MonoTorrent.dll
Syntax
public sealed class TorrentFile : IEquatable<TorrentFile>, ITorrentFile

Properties

ED2K

The ED2K hash of the file

Declaration
public byte[] ED2K { get; }
Property Value
Type Description
System.Byte[]

EndPieceIndex

The index of the last piece of this file

Declaration
public int EndPieceIndex { get; }
Property Value
Type Description
System.Int32

Length

The length of the file in bytes

Declaration
public long Length { get; }
Property Value
Type Description
System.Int64

MD5

The MD5 hash of the file

Declaration
public byte[] MD5 { get; }
Property Value
Type Description
System.Byte[]

OffsetInTorrent

The offset to the start point of the files data within the torrent, in bytes.

Declaration
public long OffsetInTorrent { get; }
Property Value
Type Description
System.Int64

Path

In the case of a single torrent file, this is the name of the file. In the case of a multi-file torrent this is the relative path of the file (including the filename) from the base directory

Declaration
public string Path { get; }
Property Value
Type Description
System.String

SHA1

The SHA1 hash of the file

Declaration
public byte[] SHA1 { get; }
Property Value
Type Description
System.Byte[]

StartPieceIndex

The index of the first piece of this file

Declaration
public int StartPieceIndex { get; }
Property Value
Type Description
System.Int32

Methods

Equals(TorrentFile)

Declaration
public bool Equals(TorrentFile other)
Parameters
Type Name Description
TorrentFile other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Implements

System.IEquatable<T>
ITorrentFile
In This Article
Back to top Generated by DocFX