reoganize

This commit is contained in:
rootdarkarchon
2023-08-06 02:37:38 +02:00
parent dcf072e00b
commit 48fa74ca80
2 changed files with 9 additions and 9 deletions

Submodule MareAPI updated: 72608d2066...126b54e552

View File

@@ -77,6 +77,14 @@ public partial class FileDownloadManager : DisposableMediatorSubscriberBase
base.Dispose(disposing);
}
private static void MungeBuffer(Span<byte> buffer)
{
for (int i = 0; i < buffer.Length; ++i)
{
buffer[i] ^= 42;
}
}
private static byte MungeByte(int byteOrEof)
{
if (byteOrEof == -1)
@@ -87,14 +95,6 @@ public partial class FileDownloadManager : DisposableMediatorSubscriberBase
return (byte)(byteOrEof ^ 42);
}
private static void MungeBuffer(Span<byte> buffer)
{
for (int i = 0; i < buffer.Length; ++i)
{
buffer[i] ^= 42;
}
}
private static (string fileHash, long fileLengthBytes) ReadBlockFileHeader(FileStream fileBlockStream)
{
List<char> hashName = new();