Ejemplo n.º 1
0
 public IntegrityHierarchicalStorageSink(long size)
 {
     this.Size      = size;
     this.m_storage = new HierarchicalIntegrityVerificationStorage();
     this.m_storage.Initialize(size);
     this.m_status = new SinkStatus();
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
 public StreamSink(Stream stream)
 {
     this.m_stream = stream;
     this.Size     = 0L;
     this.m_status = new SinkStatus();
 }
Ejemplo n.º 6
0
 public MemorySink(int size)
 {
     this.m_buffer = new byte[size];
     this.Size     = (long)size;
     this.m_status = new SinkStatus();
 }