mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Member or type can be made internal.
This commit is contained in:
@@ -41,7 +41,7 @@ using DiscImageChef.ImagePlugins;
|
||||
namespace DiscImageChef.Core.Devices.Dumping
|
||||
{
|
||||
// TODO: For >4.0, this class must disappear
|
||||
public class Alcohol120
|
||||
class Alcohol120
|
||||
{
|
||||
#region Internal Structures
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
@@ -158,7 +158,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
Dictionary<byte, uint> trackLengths;
|
||||
AlcoholFooter footer;
|
||||
|
||||
public Alcohol120(string outputPrefix)
|
||||
internal Alcohol120(string outputPrefix)
|
||||
{
|
||||
this.outputPrefix = outputPrefix;
|
||||
header = new AlcoholHeader
|
||||
@@ -178,7 +178,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
footer = new AlcoholFooter {widechar = 1};
|
||||
}
|
||||
|
||||
public void Close()
|
||||
internal void Close()
|
||||
{
|
||||
if(sessions.Count == 0 || tracks.Count == 0) return;
|
||||
|
||||
@@ -317,7 +317,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
descriptorFile.Dispose();
|
||||
}
|
||||
|
||||
public void SetMediaType(MediaType type)
|
||||
internal void SetMediaType(MediaType type)
|
||||
{
|
||||
switch(type)
|
||||
{
|
||||
@@ -376,7 +376,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
}
|
||||
}
|
||||
|
||||
public void AddSessions(Session[] cdSessions)
|
||||
internal void AddSessions(Session[] cdSessions)
|
||||
{
|
||||
foreach(Session cdSession in cdSessions)
|
||||
{
|
||||
@@ -390,7 +390,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
}
|
||||
}
|
||||
|
||||
public void SetTrackTypes(byte point, TrackType mode, TrackSubchannelType subMode)
|
||||
internal void SetTrackTypes(byte point, TrackType mode, TrackSubchannelType subMode)
|
||||
{
|
||||
AlcoholTrack[] trkArray = tracks.ToArray();
|
||||
|
||||
@@ -443,7 +443,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
}
|
||||
}
|
||||
|
||||
public void SetTrackSizes(byte point, int sectorSize, long startLba, long startOffset, long length)
|
||||
internal void SetTrackSizes(byte point, int sectorSize, long startLba, long startOffset, long length)
|
||||
{
|
||||
AlcoholTrack[] trkArray = tracks.ToArray();
|
||||
|
||||
@@ -474,7 +474,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
sessions = new List<AlcoholSession>(sess);
|
||||
}
|
||||
|
||||
public void AddTrack(byte adrCtl, byte tno, byte point, byte min, byte sec, byte frame, byte zero, byte pmin,
|
||||
internal void AddTrack(byte adrCtl, byte tno, byte point, byte min, byte sec, byte frame, byte zero, byte pmin,
|
||||
byte psec, byte pframe, byte session)
|
||||
{
|
||||
AlcoholTrack trk = new AlcoholTrack
|
||||
@@ -507,12 +507,12 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
sessions = new List<AlcoholSession>(sess);
|
||||
}
|
||||
|
||||
public void AddBCA(byte[] bca)
|
||||
internal void AddBCA(byte[] bca)
|
||||
{
|
||||
this.bca = bca;
|
||||
}
|
||||
|
||||
public void AddPFI(byte[] pfi)
|
||||
internal void AddPFI(byte[] pfi)
|
||||
{
|
||||
if(pfi.Length == 2052)
|
||||
{
|
||||
@@ -522,7 +522,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
else this.pfi = pfi;
|
||||
}
|
||||
|
||||
public void AddDMI(byte[] dmi)
|
||||
internal void AddDMI(byte[] dmi)
|
||||
{
|
||||
if(dmi.Length == 2052)
|
||||
{
|
||||
@@ -532,7 +532,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
else this.dmi = dmi;
|
||||
}
|
||||
|
||||
public void SetExtension(string extension)
|
||||
internal void SetExtension(string extension)
|
||||
{
|
||||
this.extension = extension;
|
||||
}
|
||||
|
||||
@@ -38,9 +38,9 @@ using Schemas;
|
||||
|
||||
namespace DiscImageChef.Core.Devices.Dumping
|
||||
{
|
||||
public static class ResumeSupport
|
||||
static class ResumeSupport
|
||||
{
|
||||
public static void Process(bool isLba, bool removable, ulong blocks, string Manufacturer, string Model,
|
||||
internal static void Process(bool isLba, bool removable, ulong blocks, string Manufacturer, string Model,
|
||||
string Serial, Interop.PlatformID platform, ref Resume resume,
|
||||
ref DumpHardwareType currentTry, ref ExtentsULong extents)
|
||||
{
|
||||
|
||||
@@ -36,7 +36,7 @@ using DiscImageChef.Devices;
|
||||
|
||||
namespace DiscImageChef.Core.Devices
|
||||
{
|
||||
public partial class Reader
|
||||
partial class Reader
|
||||
{
|
||||
Device dev;
|
||||
uint timeout;
|
||||
@@ -48,44 +48,44 @@ namespace DiscImageChef.Core.Devices
|
||||
uint physicalsectorsize;
|
||||
uint longBlockSize;
|
||||
|
||||
public string ErrorMessage
|
||||
internal string ErrorMessage
|
||||
{
|
||||
get { return errorMessage; }
|
||||
}
|
||||
public ulong Blocks
|
||||
internal ulong Blocks
|
||||
{
|
||||
get { return blocks; }
|
||||
}
|
||||
public uint BlocksToRead
|
||||
internal uint BlocksToRead
|
||||
{
|
||||
get { return blocksToRead; }
|
||||
}
|
||||
public uint LogicalBlockSize
|
||||
internal uint LogicalBlockSize
|
||||
{
|
||||
get { return blockSize; }
|
||||
}
|
||||
public uint PhysicalBlockSize
|
||||
internal uint PhysicalBlockSize
|
||||
{
|
||||
get { return physicalsectorsize; }
|
||||
}
|
||||
public uint LongBlockSize
|
||||
internal uint LongBlockSize
|
||||
{
|
||||
get { return longBlockSize; }
|
||||
}
|
||||
public bool CanReadRaw
|
||||
internal bool CanReadRaw
|
||||
{
|
||||
get { return readRaw; }
|
||||
}
|
||||
public bool CanSeek
|
||||
internal bool CanSeek
|
||||
{
|
||||
get { return ataSeek || seek6 || seek10; }
|
||||
}
|
||||
public bool CanSeekLBA
|
||||
internal bool CanSeekLBA
|
||||
{
|
||||
get { return ataSeekLba || seek6 || seek10; }
|
||||
}
|
||||
|
||||
public Reader(Device dev, uint timeout, byte[] identification, bool raw = false)
|
||||
internal Reader(Device dev, uint timeout, byte[] identification, bool raw = false)
|
||||
{
|
||||
this.dev = dev;
|
||||
this.timeout = timeout;
|
||||
@@ -101,7 +101,7 @@ namespace DiscImageChef.Core.Devices
|
||||
}
|
||||
}
|
||||
|
||||
public ulong GetDeviceBlocks()
|
||||
internal ulong GetDeviceBlocks()
|
||||
{
|
||||
switch(dev.Type)
|
||||
{
|
||||
@@ -114,7 +114,7 @@ namespace DiscImageChef.Core.Devices
|
||||
}
|
||||
}
|
||||
|
||||
public bool FindReadCommand()
|
||||
internal bool FindReadCommand()
|
||||
{
|
||||
switch(dev.Type)
|
||||
{
|
||||
@@ -127,7 +127,7 @@ namespace DiscImageChef.Core.Devices
|
||||
}
|
||||
}
|
||||
|
||||
public bool GetBlockSize()
|
||||
internal bool GetBlockSize()
|
||||
{
|
||||
switch(dev.Type)
|
||||
{
|
||||
@@ -140,7 +140,7 @@ namespace DiscImageChef.Core.Devices
|
||||
}
|
||||
}
|
||||
|
||||
public bool GetBlocksToRead(uint startWithBlocks = 64)
|
||||
internal bool GetBlocksToRead(uint startWithBlocks = 64)
|
||||
{
|
||||
switch(dev.Type)
|
||||
{
|
||||
@@ -153,17 +153,17 @@ namespace DiscImageChef.Core.Devices
|
||||
}
|
||||
}
|
||||
|
||||
public bool ReadBlock(out byte[] buffer, ulong block, out double duration)
|
||||
internal bool ReadBlock(out byte[] buffer, ulong block, out double duration)
|
||||
{
|
||||
return ReadBlocks(out buffer, block, 1, out duration);
|
||||
}
|
||||
|
||||
public bool ReadBlocks(out byte[] buffer, ulong block, out double duration)
|
||||
internal bool ReadBlocks(out byte[] buffer, ulong block, out double duration)
|
||||
{
|
||||
return ReadBlocks(out buffer, block, blocksToRead, out duration);
|
||||
}
|
||||
|
||||
public bool ReadBlocks(out byte[] buffer, ulong block, uint count, out double duration)
|
||||
internal bool ReadBlocks(out byte[] buffer, ulong block, uint count, out double duration)
|
||||
{
|
||||
switch(dev.Type)
|
||||
{
|
||||
@@ -177,7 +177,7 @@ namespace DiscImageChef.Core.Devices
|
||||
}
|
||||
}
|
||||
|
||||
public bool ReadCHS(out byte[] buffer, ushort cylinder, byte head, byte sector, out double duration)
|
||||
internal bool ReadCHS(out byte[] buffer, ushort cylinder, byte head, byte sector, out double duration)
|
||||
{
|
||||
switch(dev.Type)
|
||||
{
|
||||
@@ -189,7 +189,7 @@ namespace DiscImageChef.Core.Devices
|
||||
}
|
||||
}
|
||||
|
||||
public bool Seek(ulong block, out double duration)
|
||||
internal bool Seek(ulong block, out double duration)
|
||||
{
|
||||
switch(dev.Type)
|
||||
{
|
||||
@@ -202,7 +202,7 @@ namespace DiscImageChef.Core.Devices
|
||||
}
|
||||
}
|
||||
|
||||
public bool SeekCHS(ushort cylinder, byte head, byte sector, out double duration)
|
||||
internal bool SeekCHS(ushort cylinder, byte head, byte sector, out double duration)
|
||||
{
|
||||
switch(dev.Type)
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@ using DiscImageChef.Devices;
|
||||
|
||||
namespace DiscImageChef.Core.Devices
|
||||
{
|
||||
public partial class Reader
|
||||
partial class Reader
|
||||
{
|
||||
bool ataReadLba;
|
||||
bool ataReadRetryLba;
|
||||
@@ -57,24 +57,24 @@ namespace DiscImageChef.Core.Devices
|
||||
|
||||
Identify.IdentifyDevice ataId;
|
||||
|
||||
public bool IsLBA
|
||||
internal bool IsLBA
|
||||
{
|
||||
get { return lbaMode; }
|
||||
}
|
||||
public ushort Cylinders
|
||||
internal ushort Cylinders
|
||||
{
|
||||
get { return cylinders; }
|
||||
}
|
||||
public byte Heads
|
||||
internal byte Heads
|
||||
{
|
||||
get { return heads; }
|
||||
}
|
||||
public byte Sectors
|
||||
internal byte Sectors
|
||||
{
|
||||
get { return sectors; }
|
||||
}
|
||||
|
||||
public (uint, byte, byte) GetDeviceCHS()
|
||||
(uint, byte, byte) GetDeviceCHS()
|
||||
{
|
||||
if(dev.Type != DeviceType.ATA) return (0, 0, 0);
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ using DiscImageChef.Console;
|
||||
|
||||
namespace DiscImageChef.Core.Devices
|
||||
{
|
||||
public partial class Reader
|
||||
partial class Reader
|
||||
{
|
||||
// TODO: Raw reading
|
||||
bool read6;
|
||||
|
||||
@@ -36,9 +36,9 @@ using DiscImageChef.Metadata;
|
||||
|
||||
namespace DiscImageChef.Core.Devices.Report
|
||||
{
|
||||
public static class ATAPI
|
||||
static class ATAPI
|
||||
{
|
||||
public static void Report(Device dev, ref DeviceReport report, bool debug, ref bool removable)
|
||||
internal static void Report(Device dev, ref DeviceReport report, bool debug, ref bool removable)
|
||||
{
|
||||
if(report == null) return;
|
||||
|
||||
|
||||
@@ -37,9 +37,9 @@ using DiscImageChef.Metadata;
|
||||
|
||||
namespace DiscImageChef.Core.Devices.Report
|
||||
{
|
||||
public static class FireWire
|
||||
static class FireWire
|
||||
{
|
||||
public static void Report(Device dev, ref DeviceReport report, bool debug, ref bool removable)
|
||||
internal static void Report(Device dev, ref DeviceReport report, bool debug, ref bool removable)
|
||||
{
|
||||
if(report == null) return;
|
||||
|
||||
|
||||
@@ -36,9 +36,9 @@ using DiscImageChef.Metadata;
|
||||
|
||||
namespace DiscImageChef.Core.Devices.Report
|
||||
{
|
||||
public static class PCMCIA
|
||||
static class PCMCIA
|
||||
{
|
||||
public static void Report(Device dev, ref DeviceReport report, bool debug, ref bool removable)
|
||||
internal static void Report(Device dev, ref DeviceReport report, bool debug, ref bool removable)
|
||||
{
|
||||
report.PCMCIA = new pcmciaType();
|
||||
report.PCMCIA.CIS = dev.CIS;
|
||||
|
||||
@@ -37,9 +37,9 @@ using DiscImageChef.Metadata;
|
||||
|
||||
namespace DiscImageChef.Core.Devices.Report
|
||||
{
|
||||
public static class USB
|
||||
static class USB
|
||||
{
|
||||
public static void Report(Device dev, ref DeviceReport report, bool debug, ref bool removable)
|
||||
internal static void Report(Device dev, ref DeviceReport report, bool debug, ref bool removable)
|
||||
{
|
||||
if(report == null) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user