Add IMultiCommitManager (#1011)
* Update LibHac * Add IMultiCommitManager * Updates * Delete NuGet.Config * Add command version
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using Ryujinx.HLE.HOS;
|
||||
using LibHac.Common;
|
||||
using Ryujinx.HLE.HOS;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
@ -73,6 +74,16 @@ namespace Ryujinx.HLE.Utilities
|
||||
}
|
||||
}
|
||||
|
||||
public static U8Span ReadUtf8Span(ServiceCtx context, int index = 0)
|
||||
{
|
||||
ulong position = (ulong)context.Request.PtrBuff[index].Position;
|
||||
ulong size = (ulong)context.Request.PtrBuff[index].Size;
|
||||
|
||||
ReadOnlySpan<byte> buffer = context.Memory.GetSpan(position, size);
|
||||
|
||||
return new U8Span(buffer);
|
||||
}
|
||||
|
||||
public static string ReadUtf8StringSend(ServiceCtx context, int index = 0)
|
||||
{
|
||||
long position = context.Request.SendBuff[index].Position;
|
||||
|
Reference in New Issue
Block a user