From cc5779c1ff74a34da8e0bc779dbe037298480171 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Tue, 21 Sep 2021 02:59:47 +0100 Subject: [PATCH] Refactor IOpticalMediaImage.ReadSector(s)Long to return error status instead of buffer. --- Interfaces/IOpticalMediaImage.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Interfaces/IOpticalMediaImage.cs b/Interfaces/IOpticalMediaImage.cs index ac979fb..60fd42c 100644 --- a/Interfaces/IOpticalMediaImage.cs +++ b/Interfaces/IOpticalMediaImage.cs @@ -87,14 +87,16 @@ namespace Aaru.CommonTypes.Interfaces /// The complete sector. Format depends on disk type. /// Sector address (relative LBA). /// Track. - byte[] ReadSectorLong(ulong sectorAddress, uint track); + /// + ErrorNumber ReadSectorLong(ulong sectorAddress, uint track, out byte[] buffer); /// Reads several complete sector (user data + all tags), relative to track. /// The complete sectors. Format depends on disk type. /// Starting sector address (relative LBA). /// How many sectors to read. /// Track. - byte[] ReadSectorsLong(ulong sectorAddress, uint length, uint track); + /// + ErrorNumber ReadSectorsLong(ulong sectorAddress, uint length, uint track, out byte[] buffer); /// Gets the disc track extents for a specified session. /// The track extents for that session.