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(); }
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); }
public StreamSink(Stream stream) { this.m_stream = stream; this.Size = 0L; this.m_status = new SinkStatus(); }
public MemorySink(int size) { this.m_buffer = new byte[size]; this.Size = (long)size; this.m_status = new SinkStatus(); }