Skip to content

Commit

Permalink
Spanify Crc32
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcarbon authored and BobLd committed Mar 16, 2024
1 parent 77705bb commit dca1125
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/UglyToad.PdfPig/Images/Png/Crc32.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace UglyToad.PdfPig.Images.Png
{
using System;
using System.Collections.Generic;

/// <summary>
Expand Down Expand Up @@ -36,7 +37,7 @@ static Crc32()
/// <summary>
/// Calculate the CRC32 for data.
/// </summary>
public static uint Calculate(byte[] data)
public static uint Calculate(ReadOnlySpan<byte> data)
{
var crc32 = uint.MaxValue;
for (var i = 0; i < data.Length; i++)
Expand Down

0 comments on commit dca1125

Please sign in to comment.