mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +01:00
Suppress ReSharper warnings
This commit is contained in:
parent
da5a3449dd
commit
3888a03a92
@ -2,6 +2,8 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// ReSharper disable ImpureMethodCallOnReadonlyValueField
|
||||
|
||||
namespace LibHac.IO.NcaUtils
|
||||
{
|
||||
public struct NcaFsHeader
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user