From 3888a03a92517fb8fa24f52d1739d66983e4778d Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Mon, 6 May 2019 19:51:41 -0500 Subject: [PATCH] Suppress ReSharper warnings --- src/LibHac/IO/NcaUtils/NcaFsHeader.cs | 2 ++ src/LibHac/IO/NcaUtils/NcaHeader.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/LibHac/IO/NcaUtils/NcaFsHeader.cs b/src/LibHac/IO/NcaUtils/NcaFsHeader.cs index 6fcf1ec7..e4dd22f1 100644 --- a/src/LibHac/IO/NcaUtils/NcaFsHeader.cs +++ b/src/LibHac/IO/NcaUtils/NcaFsHeader.cs @@ -2,6 +2,8 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +// ReSharper disable ImpureMethodCallOnReadonlyValueField + namespace LibHac.IO.NcaUtils { public struct NcaFsHeader diff --git a/src/LibHac/IO/NcaUtils/NcaHeader.cs b/src/LibHac/IO/NcaUtils/NcaHeader.cs index 831bf082..469b670b 100644 --- a/src/LibHac/IO/NcaUtils/NcaHeader.cs +++ b/src/LibHac/IO/NcaUtils/NcaHeader.cs @@ -155,6 +155,7 @@ namespace LibHac.IO.NcaUtils Span expectedHash = GetFsHeaderHash(index); int offset = NcaHeaderStruct.FsHeadersOffset + NcaHeaderStruct.FsHeaderSize * index; + // ReSharper disable once ImpureMethodCallOnReadonlyValueField Memory headerData = _header.Slice(offset, NcaHeaderStruct.FsHeaderSize); byte[] actualHash = Crypto.ComputeSha256(headerData.ToArray(), 0, NcaHeaderStruct.FsHeaderSize);