Suppress ReSharper warnings

This commit is contained in:
Alex Barney 2019-05-06 19:51:41 -05:00
parent da5a3449dd
commit 3888a03a92
2 changed files with 3 additions and 0 deletions

View file

@ -2,6 +2,8 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// ReSharper disable ImpureMethodCallOnReadonlyValueField
namespace LibHac.IO.NcaUtils
{
public struct NcaFsHeader

View file

@ -155,6 +155,7 @@ namespace LibHac.IO.NcaUtils
Span<byte> expectedHash = GetFsHeaderHash(index);
int offset = NcaHeaderStruct.FsHeadersOffset + NcaHeaderStruct.FsHeaderSize * index;
// ReSharper disable once ImpureMethodCallOnReadonlyValueField
Memory<byte> headerData = _header.Slice(offset, NcaHeaderStruct.FsHeaderSize);
byte[] actualHash = Crypto.ComputeSha256(headerData.ToArray(), 0, NcaHeaderStruct.FsHeaderSize);