aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/IHOSBinderDriver.cs
diff options
context:
space:
mode:
authorjhorv <38920027+jhorv@users.noreply.github.com>2024-07-15 18:21:53 -0400
committerGitHub <noreply@github.com>2024-07-15 19:21:53 -0300
commita6dbb2ad2b7e1e0ed704dc33066f832e2cdd6a4a (patch)
treed9b1384680416cde0a5ee9addf741bc43c5a73bf /src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/IHOSBinderDriver.cs
parent595e514f1804ee2da31ff1b24c2facfc120386d1 (diff)
replace ByteMemoryPool usage in Ryujinx.HLE (#6953)
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/IHOSBinderDriver.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/IHOSBinderDriver.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/IHOSBinderDriver.cs b/src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/IHOSBinderDriver.cs
index 7cb6763b..2ffa961c 100644
--- a/src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/IHOSBinderDriver.cs
+++ b/src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/IHOSBinderDriver.cs
@@ -85,9 +85,9 @@ namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
ReadOnlySpan<byte> inputParcel = context.Memory.GetSpan(dataPos, (int)dataSize);
- using IMemoryOwner<byte> outputParcelOwner = ByteMemoryPool.RentCleared(replySize);
+ using SpanOwner<byte> outputParcelOwner = SpanOwner<byte>.RentCleared(checked((int)replySize));
- Span<byte> outputParcel = outputParcelOwner.Memory.Span;
+ Span<byte> outputParcel = outputParcelOwner.Span;
ResultCode result = OnTransact(binderId, code, flags, inputParcel, outputParcel);