From dca11253a0653c6bae3b3b244ca2bd83508b0846 Mon Sep 17 00:00:00 2001 From: Jason Nelson Date: Fri, 15 Mar 2024 10:17:15 -0700 Subject: [PATCH] Spanify Crc32 --- src/UglyToad.PdfPig/Images/Png/Crc32.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UglyToad.PdfPig/Images/Png/Crc32.cs b/src/UglyToad.PdfPig/Images/Png/Crc32.cs index d571018ae..17046f17d 100644 --- a/src/UglyToad.PdfPig/Images/Png/Crc32.cs +++ b/src/UglyToad.PdfPig/Images/Png/Crc32.cs @@ -1,5 +1,6 @@ namespace UglyToad.PdfPig.Images.Png { + using System; using System.Collections.Generic; /// @@ -36,7 +37,7 @@ static Crc32() /// /// Calculate the CRC32 for data. /// - public static uint Calculate(byte[] data) + public static uint Calculate(ReadOnlySpan data) { var crc32 = uint.MaxValue; for (var i = 0; i < data.Length; i++)