Ejemplo n.º 1
0
 public Continue(PieceInfo piece, RepositoryViewRead read, HashAlgorithm algorithm, RepositoryMemoryBlock block)
 {
     this.piece     = piece;
     this.read      = read;
     this.algorithm = algorithm;
     this.block     = block;
 }
Ejemplo n.º 2
0
 public Complete(Bitfield bitfield, Bitfield scope, HashAlgorithm algorithm, RepositoryViewRead read, RepositoryMemoryBlock block)
 {
     this.bitfield  = bitfield;
     this.scope     = scope;
     this.algorithm = algorithm;
     this.read      = read;
     this.block     = block;
 }
Ejemplo n.º 3
0
 public FileBufferDataBlock(RepositoryViewRead read, Action <byte[]> release)
 {
     this.read    = read;
     this.release = release;
     this.offset  = 0;
 }
Ejemplo n.º 4
0
 private FileBufferDataBlock(RepositoryViewRead read, Action <byte[]> release, int offset)
 {
     this.read    = read;
     this.release = release;
     this.offset  = offset;
 }
Ejemplo n.º 5
0
 public Complete(BlockIndex index, RepositoryViewRead read)
 {
     this.index = index;
     this.read  = read;
 }