We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ad8a59 commit b251c00Copy full SHA for b251c00
src/ImageSharp/Formats/Jpeg/Components/ZigZag.cs
@@ -77,7 +77,7 @@ public static ZigZag CreateUnzigTable()
77
ref byte sourceRef = ref MemoryMarshal.GetReference(Unzig);
78
ref byte destinationRef = ref Unsafe.AsRef<byte>(result.Data);
79
80
- Unsafe.CopyBlock(ref sourceRef, ref destinationRef, Size);
+ Unzig.CopyTo(new Span<byte>(result.Data, Size));
81
82
return result;
83
}
0 commit comments