Show / Hide Table of Contents

Class ITorrentDataExtensions

Inheritance
System.Object
ITorrentDataExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MonoTorrent.Client
Assembly: MonoTorrent.dll
Syntax
public static class ITorrentDataExtensions

Methods

BlocksPerPiece(ITorrentData, Int32)

Declaration
public static int BlocksPerPiece(this ITorrentData self, int pieceIndex)
Parameters
Type Name Description
ITorrentData self
System.Int32 pieceIndex
Returns
Type Description
System.Int32

ByteOffsetToPieceIndex(ITorrentData, Int64)

Declaration
public static int ByteOffsetToPieceIndex(this ITorrentData self, long offset)
Parameters
Type Name Description
ITorrentData self
System.Int64 offset
Returns
Type Description
System.Int32

BytesPerPiece(ITorrentData, Int32)

Declaration
public static int BytesPerPiece(this ITorrentData self, int pieceIndex)
Parameters
Type Name Description
ITorrentData self
System.Int32 pieceIndex
Returns
Type Description
System.Int32

PieceCount(ITorrentData)

The number of pieces in the torrent

Declaration
public static int PieceCount(this ITorrentData self)
Parameters
Type Name Description
ITorrentData self
Returns
Type Description
System.Int32

PieceIndexToByteOffset(ITorrentData, Int32)

Declaration
public static long PieceIndexToByteOffset(this ITorrentData self, int pieceIndex)
Parameters
Type Name Description
ITorrentData self
System.Int32 pieceIndex
Returns
Type Description
System.Int64
In This Article
Back to top Generated by DocFX