mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:47:21 +01:00
reoganize
This commit is contained in:
parent
dcf072e00b
commit
48fa74ca80
2 changed files with 9 additions and 9 deletions
2
MareAPI
2
MareAPI
|
|
@ -1 +1 @@
|
|||
Subproject commit 72608d2066656dba4608da9269db723fe5ff6f15
|
||||
Subproject commit 126b54e552e53dd6615afe0f2725040c322e0387
|
||||
|
|
@ -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