Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions SharpHDiffPatch.Core/Binary/BinaryExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using SharpHDiffPatch.Core.Patch;
using System;
using System;
using System.Buffers;
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using SharpHDiffPatch.Core.Patch;

namespace SharpHDiffPatch.Core.Binary
{
Expand Down Expand Up @@ -178,10 +178,9 @@ public static void GetPathsFromStream(this Stream reader, out string[] outputPat
public static unsafe void GetPathsFromBuffer(this Span<byte> buffer, out string[] outputPaths, int count)
{
outputPaths = new string[count];
int inLen = buffer.Length;

int idx = 0, strIdx = 0;
#if (NETSTANDARD2_0 || NET461_OR_GREATER)
#if NETSTANDARD2_0 || NET461_OR_GREATER
int len = 0;
#endif
fixed (byte* inputPtr = &MemoryMarshal.GetReference(buffer))
Expand Down
Loading