mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
General cleanup and refactor.
This commit is contained in:
@@ -30,14 +30,14 @@
|
||||
// Copyright © 2011-2022 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
namespace Aaru.DiscImages;
|
||||
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
using Aaru.Helpers;
|
||||
|
||||
namespace Aaru.DiscImages;
|
||||
|
||||
public sealed partial class Imd
|
||||
{
|
||||
/// <inheritdoc />
|
||||
@@ -49,7 +49,7 @@ public sealed partial class Imd
|
||||
if(stream.Length < 4)
|
||||
return false;
|
||||
|
||||
byte[] hdr = new byte[stream.Length < 256 ? stream.Length : 256];
|
||||
var hdr = new byte[stream.Length < 256 ? stream.Length : 256];
|
||||
stream.Read(hdr, 0, hdr.Length);
|
||||
|
||||
string hdrStr = StringHandlers.CToString(hdr, Encoding.ASCII);
|
||||
|
||||
Reference in New Issue
Block a user