예제 #1
0
 public void Flush(IChunkStorage <T> chunkStorage)
 {
     using (var writer = chunkStorage.OpenForWrite())
     {
         writer.Write(_array);
         writer.Complete();
     }
 }
예제 #2
0
            public FileChunkReference(long size, int count, IChunkStorage <T> chunkStorage, bool chunkWriter = false)
            {
                _chunkStorage = chunkStorage;
                TotalSize     = size;
                Count         = count;

                if (chunkWriter)
                {
                    _chunkStorageWriter = chunkStorage.OpenForWrite();
                }
            }