mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Move StorageStream, NullFile, NullStorage
This commit is contained in:
parent
de2d6746fe
commit
c6a09d1dfa
6 changed files with 11 additions and 8 deletions
|
@ -2,6 +2,7 @@
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using LibHac.Fs;
|
||||
using LibHac.Tools.FsSystem;
|
||||
|
||||
namespace LibHac.FsSystem;
|
||||
|
||||
|
@ -62,4 +63,4 @@ public class ConcatenationStorageSegment
|
|||
Storage = storage;
|
||||
Offset = offset;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -5,6 +5,7 @@ using System.Runtime.InteropServices;
|
|||
using LibHac.Common;
|
||||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
using LibHac.Tools.FsSystem;
|
||||
|
||||
namespace LibHac.FsSystem;
|
||||
|
||||
|
@ -220,4 +221,4 @@ public static class StorageExtensions
|
|||
if (stream == null) return null;
|
||||
return new StreamStorage(stream, keepOpen).Slice(start, length);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
|
||||
namespace LibHac.FsSystem;
|
||||
namespace LibHac.Tools.FsSystem;
|
||||
|
||||
public class NullFile : IFile
|
||||
{
|
||||
|
@ -57,4 +57,4 @@ public class NullFile : IFile
|
|||
{
|
||||
return ResultFs.UnsupportedOperation.Log();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using LibHac.Fs;
|
||||
|
||||
namespace LibHac.FsSystem;
|
||||
namespace LibHac.Tools.FsSystem;
|
||||
|
||||
/// <summary>
|
||||
/// An <see cref="IStorage"/> that returns all zeros when read, and does nothing on write.
|
||||
|
@ -40,4 +40,4 @@ public class NullStorage : IStorage
|
|||
size = Length;
|
||||
return Result.Success;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
using System.IO;
|
||||
using LibHac.Fs;
|
||||
|
||||
namespace LibHac.FsSystem;
|
||||
namespace LibHac.Tools.FsSystem;
|
||||
|
||||
public class StorageStream : Stream
|
||||
{
|
||||
|
@ -77,4 +77,4 @@ public class StorageStream : Stream
|
|||
if (!LeaveOpen) BaseStorage?.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
using LibHac.Common;
|
||||
using LibHac.Fs;
|
||||
using LibHac.FsSystem;
|
||||
using LibHac.Tools.FsSystem;
|
||||
|
||||
namespace LibHac.Tools.Ro;
|
||||
|
||||
|
|
Loading…
Reference in a new issue