replace ByteMemoryPool usage in Ryujinx.HLE (#6953)

This commit is contained in:
jhorv
2024-07-15 18:21:53 -04:00
committed by GitHub
parent 595e514f18
commit a6dbb2ad2b
3 changed files with 7 additions and 8 deletions

View File

@ -474,9 +474,9 @@ namespace Ryujinx.HLE.HOS.Services
{
const int MessageSize = 0x100;
using IMemoryOwner<byte> reqDataOwner = ByteMemoryPool.Rent(MessageSize);
using SpanOwner<byte> reqDataOwner = SpanOwner<byte>.Rent(MessageSize);
Span<byte> reqDataSpan = reqDataOwner.Memory.Span;
Span<byte> reqDataSpan = reqDataOwner.Span;
_selfProcess.CpuMemory.Read(_selfThread.TlsAddress, reqDataSpan);