Struct BlockInfo
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: MonoTorrent.dll
Syntax
public struct BlockInfo : IEquatable<BlockInfo>
Constructors
BlockInfo(Int32, Int32, Int32)
Declaration
public BlockInfo(int pieceIndex, int startOffset, int requestLength)
Parameters
| Type |
Name |
Description |
| System.Int32 |
pieceIndex |
|
| System.Int32 |
startOffset |
|
| System.Int32 |
requestLength |
|
Properties
PieceIndex
Declaration
public int PieceIndex { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
RequestLength
Declaration
public int RequestLength { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
StartOffset
Declaration
public int StartOffset { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Methods
Equals(BlockInfo)
Declaration
public bool Equals(BlockInfo other)
Parameters
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.ValueType.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.ValueType.ToString()
Operators
Equality(BlockInfo, BlockInfo)
Declaration
public static bool operator ==(BlockInfo left, BlockInfo right)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Inequality(BlockInfo, BlockInfo)
Declaration
public static bool operator !=(BlockInfo left, BlockInfo right)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Implements
System.IEquatable<T>