diff --git a/SabreTools.Helper/Objects/ZipFIle.cs b/SabreTools.Helper/Objects/ZipFIle.cs index 480d58ba..39d0764b 100644 --- a/SabreTools.Helper/Objects/ZipFIle.cs +++ b/SabreTools.Helper/Objects/ZipFIle.cs @@ -111,6 +111,8 @@ namespace SabreTools.Helper #endregion + #region Central Directory + /// /// Find the end of the central directory signature /// @@ -227,6 +229,10 @@ namespace SabreTools.Helper bw.Write(_fileComment, 0, _fileComment.Length); } + #endregion + + #region Zip64 Central Directory + /// /// Read the end of the Zip64 central directory /// @@ -361,6 +367,10 @@ namespace SabreTools.Helper bw.Write((uint)1); // total number of disks } + #endregion + + #region Open, Create, Close + /// /// Open a new file as an archive /// @@ -737,6 +747,10 @@ namespace SabreTools.Helper _zipOpen = ZipOpenType.Closed; } + #endregion + + #region Read and Write + /// /// Open the read file stream /// @@ -885,6 +899,10 @@ namespace SabreTools.Helper _entries[_entries.Count - 1].AddDirectory(); } + #endregion + + #region Helpers + /// /// Scan every individual entry for validity /// @@ -994,5 +1012,7 @@ namespace SabreTools.Helper } } } + + #endregion } } diff --git a/SabreTools.Helper/Objects/ZipFileEntry.cs b/SabreTools.Helper/Objects/ZipFileEntry.cs index 66448490..bd942845 100644 --- a/SabreTools.Helper/Objects/ZipFileEntry.cs +++ b/SabreTools.Helper/Objects/ZipFileEntry.cs @@ -155,15 +155,7 @@ namespace SabreTools.Helper #endregion - /// - /// Check if an entry equals another (use only name for now) - /// - /// - /// - public bool Equals(ZipFileEntry zfe) - { - return (String.Equals(_fileName, zfe.FileName, StringComparison.InvariantCultureIgnoreCase)); - } + #region Central Directory /// /// Read the central directory entry from the input stream @@ -387,6 +379,10 @@ namespace SabreTools.Helper // We have no file comment, so we don't have to write more } + #endregion + + #region Header + /// /// Read the local file header from the input stream /// @@ -778,6 +774,10 @@ namespace SabreTools.Helper bw.Write(extraField.ToArray(), 0, extraFieldLength); } + #endregion + + #region Read and Write + /// /// Open the read file stream /// @@ -946,6 +946,10 @@ namespace SabreTools.Helper _zipstream.Seek(posNow, SeekOrigin.Begin); } + #endregion + + #region Helpers + /// /// Get the data from the current file, if not already checked /// @@ -1027,5 +1031,17 @@ namespace SabreTools.Helper ds.WriteByte(03); ds.WriteByte(00); } + + /// + /// Check if an entry equals another (use only name for now) + /// + /// + /// + public bool Equals(ZipFileEntry zfe) + { + return (String.Equals(_fileName, zfe.FileName, StringComparison.InvariantCultureIgnoreCase)); + } + + #endregion } }