Refactor IOpticalMediaImage.ReadSector(s) to return error status instead of buffer.

This commit is contained in:
2021-09-21 01:38:48 +01:00
parent e4724dbe0b
commit 0fc3e1ef94

View File

@@ -57,7 +57,8 @@ namespace Aaru.CommonTypes.Interfaces
/// <returns>The sector's user data.</returns>
/// <param name="sectorAddress">Sector address (relative LBA).</param>
/// <param name="track">Track.</param>
byte[] ReadSector(ulong sectorAddress, uint track);
/// <param name="buffer"></param>
ErrorNumber ReadSector(ulong sectorAddress, uint track, out byte[] buffer);
/// <summary>Reads a sector's tag, relative to track.</summary>
/// <returns>The sector's tag.</returns>
@@ -71,7 +72,8 @@ namespace Aaru.CommonTypes.Interfaces
/// <param name="sectorAddress">Starting sector address (relative LBA).</param>
/// <param name="length">How many sectors to read.</param>
/// <param name="track">Track.</param>
byte[] ReadSectors(ulong sectorAddress, uint length, uint track);
/// <param name="buffer"></param>
ErrorNumber ReadSectors(ulong sectorAddress, uint length, uint track, out byte[] buffer);
/// <summary>Reads tag from several sectors, relative to track.</summary>
/// <returns>The sectors tag.</returns>