mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Suppress ReSharper warnings
This commit is contained in:
parent
da5a3449dd
commit
3888a03a92
2 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// ReSharper disable ImpureMethodCallOnReadonlyValueField
|
||||||
|
|
||||||
namespace LibHac.IO.NcaUtils
|
namespace LibHac.IO.NcaUtils
|
||||||
{
|
{
|
||||||
public struct NcaFsHeader
|
public struct NcaFsHeader
|
||||||
|
|
|
@ -155,6 +155,7 @@ namespace LibHac.IO.NcaUtils
|
||||||
Span<byte> expectedHash = GetFsHeaderHash(index);
|
Span<byte> expectedHash = GetFsHeaderHash(index);
|
||||||
|
|
||||||
int offset = NcaHeaderStruct.FsHeadersOffset + NcaHeaderStruct.FsHeaderSize * index;
|
int offset = NcaHeaderStruct.FsHeadersOffset + NcaHeaderStruct.FsHeaderSize * index;
|
||||||
|
// ReSharper disable once ImpureMethodCallOnReadonlyValueField
|
||||||
Memory<byte> headerData = _header.Slice(offset, NcaHeaderStruct.FsHeaderSize);
|
Memory<byte> headerData = _header.Slice(offset, NcaHeaderStruct.FsHeaderSize);
|
||||||
|
|
||||||
byte[] actualHash = Crypto.ComputeSha256(headerData.ToArray(), 0, NcaHeaderStruct.FsHeaderSize);
|
byte[] actualHash = Crypto.ComputeSha256(headerData.ToArray(), 0, NcaHeaderStruct.FsHeaderSize);
|
||||||
|
|
Loading…
Reference in a new issue