mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Enums, FileTypes/, Utilities] Use new enum, new class
Add a new "BaseFile" class for potential future use. This should be the "base" for all future files and folders that could exist. This is likely to change over time.
This commit is contained in:
@@ -9,20 +9,16 @@ using System.IO;
|
||||
using MemoryStream = System.IO.MemoryStream;
|
||||
using Stream = System.IO.Stream;
|
||||
#endif
|
||||
using SharpCompress.Common;
|
||||
|
||||
namespace SabreTools.Library.FileTypes
|
||||
{
|
||||
public abstract class BaseArchive
|
||||
public abstract class BaseArchive : BaseFile
|
||||
{
|
||||
#region Protected instance variables
|
||||
|
||||
// Buffer size used by archives
|
||||
protected const int _bufferSize = 4096 * 128;
|
||||
|
||||
protected ArchiveType _archiveType;
|
||||
protected string _filename;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Construtors
|
||||
@@ -39,8 +35,8 @@ namespace SabreTools.Library.FileTypes
|
||||
/// </summary>
|
||||
/// <param name="filename">Name of the file to use as an archive</param>
|
||||
public BaseArchive(string filename)
|
||||
: base(filename)
|
||||
{
|
||||
_filename = filename;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user