Ejemplo n.º 1
0
 public BlockID(string fileName, int pieceIndex, short inPieceOffset)
 {
     this.pieceId = new PieceID(fileName, pieceIndex);
     this.inPieceOffset = inPieceOffset;
 }
Ejemplo n.º 2
0
 public BlockID(PieceID piece, short inPieceOffset)
 {
     this.pieceId = piece;
     this.inPieceOffset = inPieceOffset;
 }
Ejemplo n.º 3
0
 public bool Equals(PieceID other)
 {
     return Equals(other.relFilePath, relFilePath) && other.index == index;
 }