Remove LibcFunction service (#1787)

This commit is contained in:
Haselnussbomber 2024-04-23 00:18:47 +02:00 committed by GitHub
parent bd2c9b2258
commit 51c2f77812
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 0 additions and 294 deletions

View file

@ -1,26 +0,0 @@
using System.Text;
using Dalamud.Game.Libc;
namespace Dalamud.Plugin.Services;
/// <summary>
/// This class handles creating cstrings utilizing native game methods.
/// </summary>
public interface ILibcFunction
{
/// <summary>
/// Create a new string from the given bytes.
/// </summary>
/// <param name="content">The bytes to convert.</param>
/// <returns>An owned std string object.</returns>
public OwnedStdString NewString(byte[] content);
/// <summary>
/// Create a new string form the given bytes.
/// </summary>
/// <param name="content">The bytes to convert.</param>
/// <param name="encoding">A non-default encoding.</param>
/// <returns>An owned std string object.</returns>
public OwnedStdString NewString(string content, Encoding? encoding = null);
}