Fix QueryEntry signature

This commit is contained in:
Alex Barney 2019-05-07 21:46:04 -05:00
parent f1e839a64a
commit 6590cad251
11 changed files with 11 additions and 11 deletions

View file

@ -122,7 +122,7 @@ namespace LibHac.Nand
public void CreateFile(string path, long size, CreateFileOptions options) => throw new NotSupportedException();
public void RenameDirectory(string srcPath, string dstPath) => throw new NotSupportedException();
public void RenameFile(string srcPath, string dstPath) => throw new NotSupportedException();
public void QueryEntry(Span<byte> outBuffer, Span<byte> inBuffer, string path, QueryId queryId) => throw new NotSupportedException();
public void QueryEntry(Span<byte> outBuffer, ReadOnlySpan<byte> inBuffer, string path, QueryId queryId) => throw new NotSupportedException();
private static FileAccess GetFileAccess(OpenMode mode)
{

View file

@ -199,7 +199,7 @@ namespace LibHac.IO
BaseFileSystem.Commit();
}
public void QueryEntry(Span<byte> outBuffer, Span<byte> inBuffer, string path, QueryId queryId)
public void QueryEntry(Span<byte> outBuffer, ReadOnlySpan<byte> inBuffer, string path, QueryId queryId)
{
BaseFileSystem.QueryEntry(outBuffer, inBuffer, path, queryId);
}

View file

@ -218,7 +218,7 @@ namespace LibHac.IO
BaseFileSystem.Commit();
}
public void QueryEntry(Span<byte> outBuffer, Span<byte> inBuffer, string path, QueryId queryId)
public void QueryEntry(Span<byte> outBuffer, ReadOnlySpan<byte> inBuffer, string path, QueryId queryId)
{
if(queryId != QueryId.MakeConcatFile) throw new NotSupportedException();

View file

@ -117,7 +117,7 @@ namespace LibHac.IO
/// </summary>
void Commit();
void QueryEntry(Span<byte> outBuffer, Span<byte> inBuffer, string path, QueryId queryId);
void QueryEntry(Span<byte> outBuffer, ReadOnlySpan<byte> inBuffer, string path, QueryId queryId);
}
/// <summary>

View file

@ -112,7 +112,7 @@ namespace LibHac.IO
throw new FileNotFoundException(path);
}
public void QueryEntry(Span<byte> outBuffer, Span<byte> inBuffer, string path, QueryId queryId)
public void QueryEntry(Span<byte> outBuffer, ReadOnlySpan<byte> inBuffer, string path, QueryId queryId)
{
path = PathTools.Normalize(path);

View file

@ -186,6 +186,6 @@ namespace LibHac.IO
public void Commit() { }
public void QueryEntry(Span<byte> outBuffer, Span<byte> inBuffer, string path, QueryId queryId) => throw new NotSupportedException();
public void QueryEntry(Span<byte> outBuffer, ReadOnlySpan<byte> inBuffer, string path, QueryId queryId) => throw new NotSupportedException();
}
}

View file

@ -85,7 +85,7 @@ namespace LibHac.IO
public long GetTotalSpaceSize(string path) => throw new NotSupportedException();
public FileTimeStampRaw GetFileTimeStampRaw(string path) => throw new NotSupportedException();
public void Commit() { }
public void QueryEntry(Span<byte> outBuffer, Span<byte> inBuffer, string path, QueryId queryId) => throw new NotSupportedException();
public void QueryEntry(Span<byte> outBuffer, ReadOnlySpan<byte> inBuffer, string path, QueryId queryId) => throw new NotSupportedException();
}
public enum PartitionFileSystemType

View file

@ -92,7 +92,7 @@ namespace LibHac.IO.RomFs
public long GetFreeSpaceSize(string path) => throw new NotSupportedException();
public long GetTotalSpaceSize(string path) => throw new NotSupportedException();
public FileTimeStampRaw GetFileTimeStampRaw(string path) => throw new NotSupportedException();
public void QueryEntry(Span<byte> outBuffer, Span<byte> inBuffer, string path, QueryId queryId) => throw new NotSupportedException();
public void QueryEntry(Span<byte> outBuffer, ReadOnlySpan<byte> inBuffer, string path, QueryId queryId) => throw new NotSupportedException();
}
public class RomfsHeader

View file

@ -206,7 +206,7 @@ namespace LibHac.IO.Save
}
public FileTimeStampRaw GetFileTimeStampRaw(string path) => throw new NotSupportedException();
public void QueryEntry(Span<byte> outBuffer, Span<byte> inBuffer, string path, QueryId queryId) => throw new NotSupportedException();
public void QueryEntry(Span<byte> outBuffer, ReadOnlySpan<byte> inBuffer, string path, QueryId queryId) => throw new NotSupportedException();
public bool Commit(Keyset keyset)
{

View file

@ -143,7 +143,7 @@ namespace LibHac.IO.Save
}
public FileTimeStampRaw GetFileTimeStampRaw(string path) => throw new NotSupportedException();
public void QueryEntry(Span<byte> outBuffer, Span<byte> inBuffer, string path, QueryId queryId) => throw new NotSupportedException();
public void QueryEntry(Span<byte> outBuffer, ReadOnlySpan<byte> inBuffer, string path, QueryId queryId) => throw new NotSupportedException();
public IStorage GetBaseStorage() => BaseStorage.AsReadOnly();
public IStorage GetHeaderStorage() => HeaderStorage.AsReadOnly();

View file

@ -126,7 +126,7 @@ namespace LibHac.IO
return ParentFileSystem.GetFileTimeStampRaw(ResolveFullPath(path));
}
public void QueryEntry(Span<byte> outBuffer, Span<byte> inBuffer, string path, QueryId queryId)
public void QueryEntry(Span<byte> outBuffer, ReadOnlySpan<byte> inBuffer, string path, QueryId queryId)
{
path = PathTools.Normalize(path);