Add IMultiCommitManager (#1011)
* Update LibHac * Add IMultiCommitManager * Updates * Delete NuGet.Config * Add command version
This commit is contained in:
parent
f695a215ad
commit
21c9c04f9f
15 changed files with 131 additions and 59 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue