/// <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]; }
/// <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) { }
/// <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) { }
/// <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) { }
/// <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) { }