mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +01:00
Fix getting structure size in RomFsDictionary
This commit is contained in:
parent
7099b3cdf2
commit
4ef297be7f
@ -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…
x
Reference in New Issue
Block a user