예제 #1
0
 /// <summary>
 /// Creates a new stream
 /// </summary>
 /// <param name="s">Base stream</param>
 /// <param name="isStreamOwned">Does this stream own the base stream? i.e. should it be automatically disposed?</param>
 public RandomAccessSectorStream(SectorStream s, bool isStreamOwned)
 {
     _s             = s;
     _isStreamOwned = isStreamOwned;
     _buffer        = new byte[s.SectorSize];
     _bufferSize    = s.SectorSize;
 }
예제 #2
0
 /// <summary>
 /// Creates a new stream
 /// </summary>
 /// <param name="s">Base stream</param>
 public RandomAccessSectorStream(SectorStream s)
     : this(s, false)
 {
 }