Refactor IMediaImage.ReadMediaTag to return error status instead of buffer.

This commit is contained in:
2021-09-18 15:01:31 +01:00
parent ef2fc1788a
commit fbccfb2ca9
68 changed files with 1013 additions and 651 deletions

View File

@@ -38,8 +38,12 @@ namespace Aaru.DiscImages
public sealed partial class Apridisk
{
/// <inheritdoc />
public byte[] ReadDiskTag(MediaTagType tag) =>
throw new FeatureUnsupportedImageException("Feature not supported by image format");
public ErrorNumber ReadMediaTag(MediaTagType tag, out byte[] buffer)
{
buffer = null;
return ErrorNumber.NotSupported;
}
/// <inheritdoc />
public byte[] ReadSectorTag(ulong sectorAddress, SectorTagType tag) =>