From 6a86aea19899b9710a4891c00f2227029214a15f Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Thu, 5 Oct 2023 02:46:32 +0100 Subject: [PATCH] Add missing XML comments. --- Aaru.Core/Devices/Dumping/Dump.cs | 2 ++ Aaru.Core/Logging/MHDDLog.cs | 2 ++ Aaru.Core/Media/CompactDisc.cs | 9 +++++++++ Aaru.Filters/SplitJoinStream.cs | 4 ++++ 4 files changed, 17 insertions(+) diff --git a/Aaru.Core/Devices/Dumping/Dump.cs b/Aaru.Core/Devices/Dumping/Dump.cs index e990d4f6d..074cd139c 100644 --- a/Aaru.Core/Devices/Dumping/Dump.cs +++ b/Aaru.Core/Devices/Dumping/Dump.cs @@ -165,6 +165,8 @@ public partial class Dump /// Store encrypted data as is /// Dump DVD CSS title keys /// How many CD-R(W) run end sectors to ignore and regenerate + /// If set to true creates a graph of the dump. + /// Dimensions of graph in pixels for a square public Dump(bool doResume, Device dev, string devicePath, IBaseWritableImage outputPlugin, ushort retryPasses, bool force, bool dumpRaw, bool persistent, bool stopOnError, Resume resume, DumpLog dumpLog, Encoding encoding, string outputPrefix, string outputPath, Dictionary formatOptions, diff --git a/Aaru.Core/Logging/MHDDLog.cs b/Aaru.Core/Logging/MHDDLog.cs index d5df24bf7..169fc6227 100644 --- a/Aaru.Core/Logging/MHDDLog.cs +++ b/Aaru.Core/Logging/MHDDLog.cs @@ -56,6 +56,7 @@ sealed class MhddLog /// Bytes per block /// How many blocks read at once /// Disable saving paths or serial numbers in log + /// Dimensions in pixel for a square that would contain the block map graph internal MhddLog(string outputFile, Device dev, ulong blocks, ulong blockSize, ulong blocksToRead, bool @private, uint mediaGraphDimensions = 0) { @@ -154,6 +155,7 @@ sealed class MhddLog /// Logs a new read /// Starting sector /// Duration in milliseconds + /// How many sectors where read at once internal void Write(ulong sector, double duration, uint length = 1) { if(_logFile == null) diff --git a/Aaru.Core/Media/CompactDisc.cs b/Aaru.Core/Media/CompactDisc.cs index 7a439a841..be0c7ccd9 100644 --- a/Aaru.Core/Media/CompactDisc.cs +++ b/Aaru.Core/Media/CompactDisc.cs @@ -64,6 +64,10 @@ public static class CompactDisc /// Status update callback /// List of smallest known pregap per track /// Set if we are dumping, otherwise converting + /// + /// Gets a list of the new sectors that should be considered part of a pregap, and then + /// re-read + /// /// true if indexes have changed, false otherwise public static bool WriteSubchannelToImage(MmcSubchannel supportedSubchannel, MmcSubchannel desiredSubchannel, byte[] sub, ulong sectorAddress, uint length, SubchannelLog subLog, @@ -304,6 +308,11 @@ public static class CompactDisc /// Status update callback /// List of smallest known pregap per track /// Set if we are dumping, otherwise converting + /// + /// Gets a list of the new sectors that should be considered part of a pregap, and then + /// re-read + /// + /// Sector address the subchannel was read from /// true if indexes have changed, false otherwise static bool CheckIndexesFromSubchannel(byte[] deSub, Dictionary isrcs, byte currentTrackNumber, ref string mcn, Track[] tracks, DumpLog dumpLog, diff --git a/Aaru.Filters/SplitJoinStream.cs b/Aaru.Filters/SplitJoinStream.cs index 6eb197208..96a23a0b4 100644 --- a/Aaru.Filters/SplitJoinStream.cs +++ b/Aaru.Filters/SplitJoinStream.cs @@ -231,6 +231,10 @@ public class SplitJoinStream : Stream /// Base file path, directory path only /// Counter format, includes filename and a formatting string /// Counter start, defaults to 0 + /// + /// A bitwise combination of the enumeration values that determines how the file can be accessed by a + /// object. + /// public void AddRange(string basePath, string counterFormat = "{0:D3}", int counterStart = 0, FileAccess access = FileAccess.Read) {