예제 #1
0
 /// <summary>
 /// Creates a new stream
 /// </summary>
 /// <param name="baseStream">The base stream</param>
 /// <param name="xts">The xts transform</param>
 /// <param name="sectorSize">Sector size</param>
 /// <param name="offset">Offset to start counting sectors</param>
 public XtsSectorStream(Stream baseStream, Xts xts, int sectorSize, long offset)
     : base(baseStream, sectorSize, 1, offset)
 {
     _xts        = xts;
     _tempBuffer = new byte[sectorSize];
 }
예제 #2
0
 /// <summary>
 /// Creates a new stream
 /// </summary>
 /// <param name="baseStream">The base stream</param>
 /// <param name="xts">The xts transform</param>
 /// <param name="sectorSize">Sector size</param>
 public XtsSectorStream(Stream baseStream, Xts xts, int sectorSize)
     : this(baseStream, xts, sectorSize, 0)
 {
 }
예제 #3
0
 /// <summary>
 /// Creates a new stream
 /// </summary>
 /// <param name="baseStream">The base stream</param>
 /// <param name="xts">Xts implementation to use</param>
 /// <param name="sectorSize">Sector size</param>
 /// <param name="offset">Offset to start counting sectors</param>
 public XtsStream(Stream baseStream, Xts xts, int sectorSize, long offset)
     : base(new XtsSectorStream(baseStream, xts, sectorSize, offset), false)
 {
 }
예제 #4
0
 /// <summary>
 /// Creates a new stream with the default sector size
 /// </summary>
 /// <param name="baseStream">The base stream</param>
 /// <param name="xts">The xts transform</param>
 public XtsSectorStream(Stream baseStream, Xts xts)
     : this(baseStream, xts, DefaultSectorSize)
 {
 }
예제 #5
0
 /// <summary>
 /// Creates a new stream
 /// </summary>
 /// <param name="baseStream">The base stream</param>
 /// <param name="xts">Xts implementation to use</param>
 /// <param name="sectorSize">Sector size</param>
 public XtsStream(Stream baseStream, Xts xts, int sectorSize)
     : base(new XtsSectorStream(baseStream, xts, sectorSize), false)
 {
 }