mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 16:47:22 +01:00
reoganize
This commit is contained in:
parent
dcf072e00b
commit
48fa74ca80
2 changed files with 9 additions and 9 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue