Exemple #1
0
 public IntegrityHierarchicalStorageSink(long size)
 {
     this.Size      = size;
     this.m_storage = new HierarchicalIntegrityVerificationStorage();
     this.m_storage.Initialize(size);
     this.m_status = new SinkStatus();
 }
 public ReadableSubSink(IReadableSink sink, long offset, long size)
 {
     this.m_sink   = sink;
     this.m_offset = offset;
     this.Size     = size;
     this.m_status = new SinkStatus();
 }
Exemple #3
0
 public FileSink(string filePath, long offset, long size)
 {
     this.m_filePath = filePath;
     this.m_offset   = offset;
     this.Size       = size;
     this.m_status   = new SinkStatus();
 }
        public SinkStatus QueryStatus()
        {
            SinkStatus sinkStatus = new SinkStatus();

            foreach (Range availableRange in (List <Range>) this.m_source.QueryStatus().AvailableRangeList)
            {
                sinkStatus.FilledRangeList.MergingAdd(availableRange);
            }
            sinkStatus.IsFilled = SinkUtil.CheckIsFilled(sinkStatus.FilledRangeList, this.Size);
            return(sinkStatus);
        }
Exemple #5
0
 public StreamSink(Stream stream)
 {
     this.m_stream = stream;
     this.Size     = 0L;
     this.m_status = new SinkStatus();
 }
Exemple #6
0
 public MemorySink(int size)
 {
     this.m_buffer = new byte[size];
     this.Size     = (long)size;
     this.m_status = new SinkStatus();
 }