Skip to content

Commit b251c00

Browse files
committed
Minor code changes to improve clarity
1 parent 8ad8a59 commit b251c00

File tree

1 file changed

+1
-1
lines changed
  • src/ImageSharp/Formats/Jpeg/Components

1 file changed

+1
-1
lines changed

src/ImageSharp/Formats/Jpeg/Components/ZigZag.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static ZigZag CreateUnzigTable()
7777
ref byte sourceRef = ref MemoryMarshal.GetReference(Unzig);
7878
ref byte destinationRef = ref Unsafe.AsRef<byte>(result.Data);
7979

80-
Unsafe.CopyBlock(ref sourceRef, ref destinationRef, Size);
80+
Unzig.CopyTo(new Span<byte>(result.Data, Size));
8181

8282
return result;
8383
}

0 commit comments

Comments
 (0)