reoganize
This commit is contained in:
2
MareAPI
2
MareAPI
Submodule MareAPI updated: 72608d2066...126b54e552
@@ -77,6 +77,14 @@ public partial class FileDownloadManager : DisposableMediatorSubscriberBase
|
|||||||
base.Dispose(disposing);
|
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)
|
private static byte MungeByte(int byteOrEof)
|
||||||
{
|
{
|
||||||
if (byteOrEof == -1)
|
if (byteOrEof == -1)
|
||||||
@@ -87,14 +95,6 @@ public partial class FileDownloadManager : DisposableMediatorSubscriberBase
|
|||||||
return (byte)(byteOrEof ^ 42);
|
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)
|
private static (string fileHash, long fileLengthBytes) ReadBlockFileHeader(FileStream fileBlockStream)
|
||||||
{
|
{
|
||||||
List<char> hashName = new();
|
List<char> hashName = new();
|
||||||
|
|||||||
Reference in New Issue
Block a user