|
|
@ -83,6 +83,7 @@ namespace SixLabors.ImageSharp.Compression.Zlib |
|
|
int length = chunksize; |
|
|
int length = chunksize; |
|
|
|
|
|
|
|
|
fixed (byte* bufferPtr = buffer) |
|
|
fixed (byte* bufferPtr = buffer) |
|
|
|
|
|
{ |
|
|
fixed (ulong* k05PolyPtr = K05Poly) |
|
|
fixed (ulong* k05PolyPtr = K05Poly) |
|
|
{ |
|
|
{ |
|
|
byte* localBufferPtr = bufferPtr; |
|
|
byte* localBufferPtr = bufferPtr; |
|
|
@ -196,6 +197,7 @@ namespace SixLabors.ImageSharp.Compression.Zlib |
|
|
return buffer.Length - chunksize == 0 ? crc : CalculateScalar(crc, buffer.Slice(chunksize)); |
|
|
return buffer.Length - chunksize == 0 ? crc : CalculateScalar(crc, buffer.Slice(chunksize)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
|
|
|
[MethodImpl(InliningOptions.HotPath | InliningOptions.ShortMethod)] |
|
|
[MethodImpl(InliningOptions.HotPath | InliningOptions.ShortMethod)] |
|
|
|