mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-01 20:50:06 +02:00
misc: chore: Fix object creation
This commit is contained in:
@@ -247,8 +247,7 @@ namespace Ryujinx.Memory
|
||||
protected unsafe override Memory<byte> GetPhysicalAddressMemory(nuint pa, int size)
|
||||
=> new NativeMemoryManager<byte>((byte*)pa, size).Memory;
|
||||
|
||||
protected override unsafe Span<byte> GetPhysicalAddressSpan(nuint pa, int size)
|
||||
=> new Span<byte>((void*)pa, size);
|
||||
protected override unsafe Span<byte> GetPhysicalAddressSpan(nuint pa, int size) => new((void*)pa, size);
|
||||
|
||||
protected override nuint TranslateVirtualAddressChecked(ulong va)
|
||||
=> GetHostAddress(va);
|
||||
|
||||
Reference in New Issue
Block a user