Esempio n. 1
0
 public ExPartStream(ExStreamBase b, Range rng, FileAccess ac= FileAccess.ReadWrite)
 {
     _baseStream = b;
     _startPosition = rng.Lower;
     _length = rng.Higher - rng.Lower;
     _access = ac;
 }
Esempio n. 2
0
 //Constructors
 public ExPartStream(ExStreamBase b, Int64 start, Int64 len, FileAccess ac = FileAccess.ReadWrite)
 {
     if (len < 0) { throw new ArgumentOutOfRangeException(); }
     if (start < 0) { throw new ArgumentOutOfRangeException(); }
     _baseStream = b;
     _startPosition = start;
     _length = len;
     _access = ac;
 }