From 48fa74ca80f067470407ae11d7f942104256afaa Mon Sep 17 00:00:00 2001 From: rootdarkarchon Date: Sun, 6 Aug 2023 02:37:38 +0200 Subject: [PATCH] reoganize --- MareAPI | 2 +- .../WebAPI/Files/FileDownloadManager.cs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/MareAPI b/MareAPI index 72608d2..126b54e 160000 --- a/MareAPI +++ b/MareAPI @@ -1 +1 @@ -Subproject commit 72608d2066656dba4608da9269db723fe5ff6f15 +Subproject commit 126b54e552e53dd6615afe0f2725040c322e0387 diff --git a/MareSynchronos/WebAPI/Files/FileDownloadManager.cs b/MareSynchronos/WebAPI/Files/FileDownloadManager.cs index bf67310..d1d29cf 100644 --- a/MareSynchronos/WebAPI/Files/FileDownloadManager.cs +++ b/MareSynchronos/WebAPI/Files/FileDownloadManager.cs @@ -77,6 +77,14 @@ public partial class FileDownloadManager : DisposableMediatorSubscriberBase base.Dispose(disposing); } + private static void MungeBuffer(Span 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 buffer) - { - for (int i = 0; i < buffer.Length; ++i) - { - buffer[i] ^= 42; - } - } - private static (string fileHash, long fileLengthBytes) ReadBlockFileHeader(FileStream fileBlockStream) { List hashName = new();