diff --git a/src/UglyToad.PdfPig/Images/Png/Crc32.cs b/src/UglyToad.PdfPig/Images/Png/Crc32.cs index d571018a..17046f17 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 @@ /// /// 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++)