mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Fix getting structure size in RomFsDictionary
This commit is contained in:
parent
7099b3cdf2
commit
4ef297be7f
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ namespace LibHac.Fs.RomFs
|
|||
private int CountEntries()
|
||||
{
|
||||
int count = 0;
|
||||
int nextStructOffset = (sizeof(int) + Marshal.SizeOf<T>()) / 4;
|
||||
int nextStructOffset = (sizeof(int) + Unsafe.SizeOf<T>()) / 4;
|
||||
Span<int> data = MemoryMarshal.Cast<byte, int>(Entries.AsSpan());
|
||||
|
||||
for (int i = 0; i < Buckets.Length; i++)
|
||||
|
|
Loading…
Reference in a new issue