コード例 #1
0
 public FileWriter(string path, OldFileSystem fs, FileEntry entry)
 {
     _fs             = fs;
     _client         = fs.Client;
     _entry          = entry;
     _crypto         = fs._cryptoMgr;
     _path           = path;
     _creationTime   = DateTime.UtcNow;
     _maxSegmentSize = 1024 * 1024 * 64;
     _maxWrittenSize = _maxSegmentSize - _crypto.AuthenticatedEncryption.IVByteSize;
     InitSegment();
     _uploadThread = new Thread(UploadThread);
     _uploadThread.Start();
 }
コード例 #2
0
 public FileReader(OldFileSystem fs, FileEntry entry)
 {
     _fs    = fs;
     _entry = entry;
 }