Exemple #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, offset)
 {
     _xts        = xts;
     _tempBuffer = new byte[sectorSize];
 }
Exemple #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)
 {
 }
Exemple #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), true)
 {
 }
Exemple #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, DEFAULT_SECTOR_SIZE)
 {
 }
Exemple #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), true)
 {
 }