From 95525cff74eb1ac3639e61276e5294cb34af3886 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 20 Sep 2021 14:22:12 +0100 Subject: [PATCH] Refactor IMediaImage.ReadSector(s)Long to return error status instead of buffer. --- Interfaces/IMediaImage.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Interfaces/IMediaImage.cs b/Interfaces/IMediaImage.cs index 22b986d..96572a3 100644 --- a/Interfaces/IMediaImage.cs +++ b/Interfaces/IMediaImage.cs @@ -109,12 +109,14 @@ namespace Aaru.CommonTypes.Interfaces /// Reads a complete sector (user data + all tags). /// The complete sector. Format depends on disk type. /// Sector address (LBA). - byte[] ReadSectorLong(ulong sectorAddress); + /// + ErrorNumber ReadSectorLong(ulong sectorAddress, out byte[] buffer); /// Reads several complete sector (user data + all tags). /// The complete sectors. Format depends on disk type. /// Starting sector address (LBA). /// How many sectors to read. - byte[] ReadSectorsLong(ulong sectorAddress, uint length); + /// + ErrorNumber ReadSectorsLong(ulong sectorAddress, uint length, out byte[] buffer); } } \ No newline at end of file