示例#1
0
 public IntegrityHierarchicalStorageSink(long size)
 {
     this.Size      = size;
     this.m_storage = new HierarchicalIntegrityVerificationStorage();
     this.m_storage.Initialize(size);
     this.m_status = new SinkStatus();
 }
示例#2
0
 public ReadableSubSink(IReadableSink sink, long offset, long size)
 {
     this.m_sink   = sink;
     this.m_offset = offset;
     this.Size     = size;
     this.m_status = new SinkStatus();
 }
示例#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);
        }
示例#5
0
 public StreamSink(Stream stream)
 {
     this.m_stream = stream;
     this.Size     = 0L;
     this.m_status = new SinkStatus();
 }
示例#6
0
 public MemorySink(int size)
 {
     this.m_buffer = new byte[size];
     this.Size     = (long)size;
     this.m_status = new SinkStatus();
 }