Rename IO namespace to Fs (#58)

This commit is contained in:
Alex Barney 2019-05-14 16:39:20 -05:00 committed by GitHub
parent e3e6411aa6
commit d189826203
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
125 changed files with 142 additions and 142 deletions

View file

@ -2,10 +2,10 @@
using System.IO;
using System.Runtime.CompilerServices;
using DiscUtils;
using LibHac.IO;
using LibHac.Fs;
using DirectoryEntry = LibHac.IO.DirectoryEntry;
using IFileSystem = LibHac.IO.IFileSystem;
using DirectoryEntry = LibHac.Fs.DirectoryEntry;
using IFileSystem = LibHac.Fs.IFileSystem;
namespace LibHac.Nand
{

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
using DiscUtils.Fat;
using LibHac.IO;
using LibHac.Fs;
namespace LibHac.Nand
{

View file

@ -4,7 +4,7 @@ using DiscUtils;
using DiscUtils.Fat;
using DiscUtils.Partitions;
using DiscUtils.Streams;
using LibHac.IO;
using LibHac.Fs;
namespace LibHac.Nand
{

View file

@ -1,6 +1,6 @@
using System.IO;
using System.Linq;
using LibHac.IO.NcaUtils;
using LibHac.Fs.NcaUtils;
namespace LibHac
{

View file

@ -2,7 +2,7 @@
using System.IO;
using System.Numerics;
using System.Security.Cryptography;
using LibHac.IO;
using LibHac.Fs;
namespace LibHac
{

View file

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
namespace LibHac.IO
namespace LibHac.Fs
{
public class Aes128CtrExStorage : Aes128CtrStorage
{

View file

@ -2,7 +2,7 @@
using System.Buffers;
using System.Buffers.Binary;
namespace LibHac.IO
namespace LibHac.Fs
{
public class Aes128CtrStorage : SectorStorage
{

View file

@ -4,7 +4,7 @@ using System.Buffers.Binary;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
namespace LibHac.IO
namespace LibHac.Fs
{
public class Aes128CtrTransform
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO
namespace LibHac.Fs
{
public class Aes128XtsStorage : SectorStorage
{

View file

@ -29,7 +29,7 @@ using System.Buffers;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
namespace LibHac.IO
namespace LibHac.Fs
{
public class Aes128XtsTransform
{

View file

@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace LibHac.IO
namespace LibHac.Fs
{
public class AesXtsDirectory : IDirectory
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO
namespace LibHac.Fs
{
public class AesXtsFile : FileBase
{

View file

@ -4,7 +4,7 @@ using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Text;
namespace LibHac.IO
namespace LibHac.Fs
{
public class AesXtsFileHeader
{

View file

@ -2,7 +2,7 @@
using System.Diagnostics;
using System.IO;
namespace LibHac.IO
namespace LibHac.Fs
{
public class AesXtsFileSystem : IFileSystem
{

View file

@ -2,7 +2,7 @@
using System.IO;
using System.Linq;
namespace LibHac.IO
namespace LibHac.Fs
{
public class BucketTree<T> where T : BucketTreeEntry<T>, new()
{

View file

@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace LibHac.IO
namespace LibHac.Fs
{
public class CachedStorage : StorageBase
{

View file

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace LibHac.IO
namespace LibHac.Fs
{
public class ConcatenationDirectory : IDirectory
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace LibHac.IO
namespace LibHac.Fs
{
public class ConcatenationFile : FileBase
{

View file

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.IO;
namespace LibHac.IO
namespace LibHac.Fs
{
public class ConcatenationFileSystem : IFileSystem
{

View file

@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace LibHac.IO
namespace LibHac.Fs
{
public class ConcatenationStorage : StorageBase
{

View file

@ -2,7 +2,7 @@
using System.IO;
using System.Linq;
namespace LibHac.IO
namespace LibHac.Fs
{
public class ConcatenationStorageBuilder
{

View file

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.IO;
namespace LibHac.IO
namespace LibHac.Fs
{
public class DeltaFragment
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO
namespace LibHac.Fs
{
public class DirectoryEntry
{

View file

@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace LibHac.IO
namespace LibHac.Fs
{
public abstract class FileBase : IFile
{

View file

@ -3,7 +3,7 @@ using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;
namespace LibHac.IO
namespace LibHac.Fs
{
public class FileReader
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO
namespace LibHac.Fs
{
public class FileStorage : StorageBase
{

View file

@ -7,7 +7,7 @@ using System.IO;
using System.IO.Enumeration;
#endif
namespace LibHac.IO
namespace LibHac.Fs
{
public static class FileSystemExtensions
{

View file

@ -1,4 +1,4 @@
namespace LibHac.IO
namespace LibHac.Fs
{
public struct FileTimeStampRaw
{

View file

@ -4,7 +4,7 @@ using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace LibHac.IO
namespace LibHac.Fs
{
public class HierarchicalIntegrityVerificationStorage : StorageBase
{

View file

@ -1,4 +1,4 @@
namespace LibHac.IO
namespace LibHac.Fs
{
public interface IAttributeFileSystem : IFileSystem
{

View file

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace LibHac.IO
namespace LibHac.Fs
{
/// <summary>
/// Provides an interface for enumerating the child entries of a directory.

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO
namespace LibHac.Fs
{
/// <summary>
/// Provides an interface for reading and writing a sequence of bytes.

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace LibHac.IO
namespace LibHac.Fs
{
/// <summary>
/// Provides an interface for accessing a file system. <c>/</c> is used as the path delimiter.

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO
namespace LibHac.Fs
{
/// <summary>
/// Provides an interface for reading and writing a sequence of bytes.

View file

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
namespace LibHac.IO
namespace LibHac.Fs
{
public class IndirectStorage : StorageBase
{

View file

@ -2,9 +2,9 @@
using System.Buffers;
using System.IO;
using System.Security.Cryptography;
using LibHac.IO.Save;
using LibHac.Fs.Save;
namespace LibHac.IO
namespace LibHac.Fs
{
public class IntegrityVerificationStorage : SectorStorage
{

View file

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.IO;
namespace LibHac.IO
namespace LibHac.Fs
{
public class LayeredFileSystem : IFileSystem
{

View file

@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Linq;
namespace LibHac.IO
namespace LibHac.Fs
{
public class LayeredFileSystemDirectory : IDirectory
{

View file

@ -2,7 +2,7 @@
using System.IO;
using System.Runtime.CompilerServices;
namespace LibHac.IO
namespace LibHac.Fs
{
public class LocalDirectory : IDirectory
{

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace LibHac.IO
namespace LibHac.Fs
{
public class LocalFile : FileBase
{

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace LibHac.IO
namespace LibHac.Fs
{
public class LocalFileSystem : IAttributeFileSystem
{

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace LibHac.IO
namespace LibHac.Fs
{
public class LocalStorage : StorageBase
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO
namespace LibHac.Fs
{
public class MemoryStorage : StorageBase
{

View file

@ -1,4 +1,4 @@
namespace LibHac.IO
namespace LibHac.Fs
{
internal static class Messages
{

View file

@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using LibHac.IO.RomFs;
using LibHac.Fs.RomFs;
namespace LibHac.IO.NcaUtils
namespace LibHac.Fs.NcaUtils
{
public class Nca
{

View file

@ -2,7 +2,7 @@
using System.Buffers.Binary;
using System.Diagnostics;
namespace LibHac.IO.NcaUtils
namespace LibHac.Fs.NcaUtils
{
public static class NcaExtensions
{

View file

@ -4,7 +4,7 @@ using System.Runtime.InteropServices;
// ReSharper disable ImpureMethodCallOnReadonlyValueField
namespace LibHac.IO.NcaUtils
namespace LibHac.Fs.NcaUtils
{
public struct NcaFsHeader
{

View file

@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace LibHac.IO.NcaUtils
namespace LibHac.Fs.NcaUtils
{
public struct NcaFsIntegrityInfoIvfc
{

View file

@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace LibHac.IO.NcaUtils
namespace LibHac.Fs.NcaUtils
{
public struct NcaFsIntegrityInfoSha256
{

View file

@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace LibHac.IO.NcaUtils
namespace LibHac.Fs.NcaUtils
{
public struct NcaFsPatchInfo
{

View file

@ -3,7 +3,7 @@ using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace LibHac.IO.NcaUtils
namespace LibHac.Fs.NcaUtils
{
public struct NcaHeader
{

View file

@ -1,4 +1,4 @@
namespace LibHac.IO.NcaUtils
namespace LibHac.Fs.NcaUtils
{
internal enum NcaKeyType
{

View file

@ -1,4 +1,4 @@
namespace LibHac.IO.NcaUtils
namespace LibHac.Fs.NcaUtils
{
public class TitleVersion
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO
namespace LibHac.Fs
{
public class NullFile : FileBase
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO
namespace LibHac.Fs
{
/// <summary>
/// An <see cref="IStorage"/> that returns all zeros when read, and does nothing on write.

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace LibHac.IO
namespace LibHac.Fs
{
public class NxFileStream : Stream
{

View file

@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.IO;
namespace LibHac.IO
namespace LibHac.Fs
{
public class PartitionDirectory : IDirectory
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO
namespace LibHac.Fs
{
public class PartitionFile : FileBase
{

View file

@ -4,7 +4,7 @@ using System.IO;
using System.Linq;
using System.Text;
namespace LibHac.IO
namespace LibHac.Fs
{
public class PartitionFileSystem : IFileSystem
{

View file

@ -5,7 +5,7 @@ using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace LibHac.IO
namespace LibHac.Fs
{
public class PartitionFileSystemBuilder
{

View file

@ -1,7 +1,7 @@
using System;
using System.Diagnostics;
namespace LibHac.IO
namespace LibHac.Fs
{
/// <summary>
/// Enumerates a file or directory path one segment at a time.

View file

@ -2,7 +2,7 @@
using System.Diagnostics;
using System.Runtime.CompilerServices;
namespace LibHac.IO
namespace LibHac.Fs
{
public static class PathTools
{

View file

@ -1,7 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace LibHac.IO.RomFs
namespace LibHac.Fs.RomFs
{
/// <summary>
/// Represents the file table used by the RomFS format.

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace LibHac.IO.RomFs
namespace LibHac.Fs.RomFs
{
/// <summary>
/// Builds a RomFS from a collection of files.

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace LibHac.IO.RomFs
namespace LibHac.Fs.RomFs
{
internal class RomFsDictionary<T> where T : unmanaged
{

View file

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace LibHac.IO.RomFs
namespace LibHac.Fs.RomFs
{
public class RomFsDirectory : IDirectory
{

View file

@ -1,7 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace LibHac.IO.RomFs
namespace LibHac.Fs.RomFs
{
internal ref struct RomEntryKey
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO.RomFs
namespace LibHac.Fs.RomFs
{
public class RomFsFile : FileBase
{

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace LibHac.IO.RomFs
namespace LibHac.Fs.RomFs
{
public class RomFsFileSystem : IFileSystem
{

View file

@ -3,7 +3,7 @@ using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class AllocationTable
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class AllocationTableIterator
{

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class AllocationTableStorage : StorageBase
{

View file

@ -2,7 +2,7 @@
using System.Collections;
using System.IO;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class DuplexBitmap
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class DuplexStorage : StorageBase
{

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class Header
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class HierarchicalDuplexStorage : StorageBase
{

View file

@ -2,7 +2,7 @@
using System.IO;
using System.Runtime.InteropServices;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class HierarchicalSaveFileTable
{

View file

@ -1,6 +1,6 @@
using System.IO;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class JournalMap
{

View file

@ -2,7 +2,7 @@
using System.Collections;
using System.IO;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class JournalStorage : StorageBase
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class RemapStorage : StorageBase
{

View file

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class SaveDataDirectory : IDirectory
{

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class SaveDataFile : FileBase
{

View file

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.IO;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class SaveDataFileSystem : IFileSystem
{

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public class SaveDataFileSystemCore : IFileSystem
{

View file

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
public static class SaveExtensions
{

View file

@ -1,7 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
internal ref struct SaveEntryKey
{

View file

@ -3,7 +3,7 @@ using System.Diagnostics;
using System.IO;
using System.Text;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
[DebuggerDisplay("{" + nameof(FullPath) + "}")]
public abstract class SaveFsEntry

View file

@ -4,7 +4,7 @@ using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace LibHac.IO.Save
namespace LibHac.Fs.Save
{
internal class SaveFsList<T> where T : struct
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO
namespace LibHac.Fs
{
public class SectorStorage : StorageBase
{

View file

@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace LibHac.IO
namespace LibHac.Fs
{
public abstract class StorageBase : IStorage
{

View file

@ -3,7 +3,7 @@ using System.Buffers;
using System.IO;
using System.Runtime.InteropServices;
namespace LibHac.IO
namespace LibHac.Fs
{
public static class StorageExtensions
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO
namespace LibHac.Fs
{
public class StorageFile : FileBase
{

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace LibHac.IO
namespace LibHac.Fs
{
public class StorageStream : Stream
{

View file

@ -5,7 +5,7 @@ using System.IO;
using System.Buffers;
#endif
namespace LibHac.IO
namespace LibHac.Fs
{
/// <summary>
/// Provides an <see cref="IFile"/> interface for interacting with a <see cref="Stream"/>

View file

@ -5,7 +5,7 @@ using System.IO;
using System.Buffers;
#endif
namespace LibHac.IO
namespace LibHac.Fs
{
public class StreamStorage : StorageBase
{

View file

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace LibHac.IO
namespace LibHac.Fs
{
public class SubStorage : StorageBase
{

View file

@ -1,6 +1,6 @@
using System;
namespace LibHac.IO
namespace LibHac.Fs
{
public class SubdirectoryFileSystem : IFileSystem
{

View file

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace LibHac.IO
namespace LibHac.Fs
{
public class SubdirectoryFileSystemDirectory : IDirectory
{

View file

@ -4,7 +4,7 @@ using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace LibHac.IO
namespace LibHac.Fs
{
internal ref struct ValueStringBuilder
{

View file

@ -4,7 +4,7 @@ using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using LibHac.IO;
using LibHac.Fs;
namespace LibHac
{

Some files were not shown because too many files have changed in this diff Show more