Пример #1
0
 public Continue(PieceInfo piece, RepositoryViewRead read, HashAlgorithm algorithm, RepositoryMemoryBlock block)
 {
     this.piece     = piece;
     this.read      = read;
     this.algorithm = algorithm;
     this.block     = block;
 }
Пример #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;
 }
Пример #3
0
 public FileBufferDataBlock(RepositoryViewRead read, Action <byte[]> release)
 {
     this.read    = read;
     this.release = release;
     this.offset  = 0;
 }
Пример #4
0
 private FileBufferDataBlock(RepositoryViewRead read, Action <byte[]> release, int offset)
 {
     this.read    = read;
     this.release = release;
     this.offset  = offset;
 }
Пример #5
0
 public Complete(BlockIndex index, RepositoryViewRead read)
 {
     this.index = index;
     this.read  = read;
 }