// ------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using HexaGen.Runtime; using System.Numerics; namespace Dalamud.Bindings.ImGui { public unsafe partial class ImGuiP { /// /// To be documented. /// public static int ImTextCountCharsFromUtf8(byte* inText, string inTextEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (inTextEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } int ret = ImTextCountCharsFromUtf8Native(inText, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static int ImTextCountCharsFromUtf8(ref byte inText, ref byte inTextEnd) { fixed (byte* pinText = &inText) { fixed (byte* pinTextEnd = &inTextEnd) { int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, (byte*)pinTextEnd); return ret; } } } /// /// To be documented. /// public static int ImTextCountCharsFromUtf8(ReadOnlySpan inText, ReadOnlySpan inTextEnd) { fixed (byte* pinText = inText) { fixed (byte* pinTextEnd = inTextEnd) { int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, (byte*)pinTextEnd); return ret; } } } /// /// To be documented. /// public static int ImTextCountCharsFromUtf8(string inText, string inTextEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (inText != null) { pStrSize0 = Utils.GetByteCountUTF8(inText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (inTextEnd != null) { pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } int ret = ImTextCountCharsFromUtf8Native(pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static int ImTextCountCharsFromUtf8(ref byte inText, ReadOnlySpan inTextEnd) { fixed (byte* pinText = &inText) { fixed (byte* pinTextEnd = inTextEnd) { int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, (byte*)pinTextEnd); return ret; } } } /// /// To be documented. /// public static int ImTextCountCharsFromUtf8(ref byte inText, string inTextEnd) { fixed (byte* pinText = &inText) { byte* pStr0 = null; int pStrSize0 = 0; if (inTextEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static int ImTextCountCharsFromUtf8(ReadOnlySpan inText, ref byte inTextEnd) { fixed (byte* pinText = inText) { fixed (byte* pinTextEnd = &inTextEnd) { int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, (byte*)pinTextEnd); return ret; } } } /// /// To be documented. /// public static int ImTextCountCharsFromUtf8(ReadOnlySpan inText, string inTextEnd) { fixed (byte* pinText = inText) { byte* pStr0 = null; int pStrSize0 = 0; if (inTextEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static int ImTextCountCharsFromUtf8(string inText, ref byte inTextEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (inText != null) { pStrSize0 = Utils.GetByteCountUTF8(inText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pinTextEnd = &inTextEnd) { int ret = ImTextCountCharsFromUtf8Native(pStr0, (byte*)pinTextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static int ImTextCountCharsFromUtf8(string inText, ReadOnlySpan inTextEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (inText != null) { pStrSize0 = Utils.GetByteCountUTF8(inText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pinTextEnd = inTextEnd) { int ret = ImTextCountCharsFromUtf8Native(pStr0, (byte*)pinTextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int ImTextCountUtf8BytesFromCharNative(byte* inText, byte* inTextEnd) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[719])(inText, inTextEnd); #else return (int)((delegate* unmanaged[Cdecl])funcTable[719])((nint)inText, (nint)inTextEnd); #endif } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(byte* inText, byte* inTextEnd) { int ret = ImTextCountUtf8BytesFromCharNative(inText, inTextEnd); return ret; } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(ref byte inText, byte* inTextEnd) { fixed (byte* pinText = &inText) { int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, inTextEnd); return ret; } } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(ReadOnlySpan inText, byte* inTextEnd) { fixed (byte* pinText = inText) { int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, inTextEnd); return ret; } } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(string inText, byte* inTextEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (inText != null) { pStrSize0 = Utils.GetByteCountUTF8(inText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } int ret = ImTextCountUtf8BytesFromCharNative(pStr0, inTextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(byte* inText, ref byte inTextEnd) { fixed (byte* pinTextEnd = &inTextEnd) { int ret = ImTextCountUtf8BytesFromCharNative(inText, (byte*)pinTextEnd); return ret; } } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(byte* inText, ReadOnlySpan inTextEnd) { fixed (byte* pinTextEnd = inTextEnd) { int ret = ImTextCountUtf8BytesFromCharNative(inText, (byte*)pinTextEnd); return ret; } } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(byte* inText, string inTextEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (inTextEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } int ret = ImTextCountUtf8BytesFromCharNative(inText, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(ref byte inText, ref byte inTextEnd) { fixed (byte* pinText = &inText) { fixed (byte* pinTextEnd = &inTextEnd) { int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, (byte*)pinTextEnd); return ret; } } } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(ReadOnlySpan inText, ReadOnlySpan inTextEnd) { fixed (byte* pinText = inText) { fixed (byte* pinTextEnd = inTextEnd) { int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, (byte*)pinTextEnd); return ret; } } } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(string inText, string inTextEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (inText != null) { pStrSize0 = Utils.GetByteCountUTF8(inText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (inTextEnd != null) { pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } int ret = ImTextCountUtf8BytesFromCharNative(pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(ref byte inText, ReadOnlySpan inTextEnd) { fixed (byte* pinText = &inText) { fixed (byte* pinTextEnd = inTextEnd) { int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, (byte*)pinTextEnd); return ret; } } } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(ref byte inText, string inTextEnd) { fixed (byte* pinText = &inText) { byte* pStr0 = null; int pStrSize0 = 0; if (inTextEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(ReadOnlySpan inText, ref byte inTextEnd) { fixed (byte* pinText = inText) { fixed (byte* pinTextEnd = &inTextEnd) { int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, (byte*)pinTextEnd); return ret; } } } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(ReadOnlySpan inText, string inTextEnd) { fixed (byte* pinText = inText) { byte* pStr0 = null; int pStrSize0 = 0; if (inTextEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(string inText, ref byte inTextEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (inText != null) { pStrSize0 = Utils.GetByteCountUTF8(inText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pinTextEnd = &inTextEnd) { int ret = ImTextCountUtf8BytesFromCharNative(pStr0, (byte*)pinTextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar(string inText, ReadOnlySpan inTextEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (inText != null) { pStrSize0 = Utils.GetByteCountUTF8(inText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pinTextEnd = inTextEnd) { int ret = ImTextCountUtf8BytesFromCharNative(pStr0, (byte*)pinTextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int ImTextCountUtf8BytesFromStrNative(ushort* inText, ushort* inTextEnd) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[720])(inText, inTextEnd); #else return (int)((delegate* unmanaged[Cdecl])funcTable[720])((nint)inText, (nint)inTextEnd); #endif } /// /// To be documented. /// public static int ImTextCountUtf8BytesFromStr(ushort* inText, ushort* inTextEnd) { int ret = ImTextCountUtf8BytesFromStrNative(inText, inTextEnd); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImFileHandle ImFileOpenNative(byte* filename, byte* mode) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[721])(filename, mode); #else return (ImFileHandle)((delegate* unmanaged[Cdecl])funcTable[721])((nint)filename, (nint)mode); #endif } /// /// To be documented. /// public static ImFileHandle ImFileOpen(byte* filename, byte* mode) { ImFileHandle ret = ImFileOpenNative(filename, mode); return ret; } /// /// To be documented. /// public static ImFileHandle ImFileOpen(ref byte filename, byte* mode) { fixed (byte* pfilename = &filename) { ImFileHandle ret = ImFileOpenNative((byte*)pfilename, mode); return ret; } } /// /// To be documented. /// public static ImFileHandle ImFileOpen(ReadOnlySpan filename, byte* mode) { fixed (byte* pfilename = filename) { ImFileHandle ret = ImFileOpenNative((byte*)pfilename, mode); return ret; } } /// /// To be documented. /// public static ImFileHandle ImFileOpen(string filename, byte* mode) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFileHandle ret = ImFileOpenNative(pStr0, mode); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImFileHandle ImFileOpen(byte* filename, ref byte mode) { fixed (byte* pmode = &mode) { ImFileHandle ret = ImFileOpenNative(filename, (byte*)pmode); return ret; } } /// /// To be documented. /// public static ImFileHandle ImFileOpen(byte* filename, ReadOnlySpan mode) { fixed (byte* pmode = mode) { ImFileHandle ret = ImFileOpenNative(filename, (byte*)pmode); return ret; } } /// /// To be documented. /// public static ImFileHandle ImFileOpen(byte* filename, string mode) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFileHandle ret = ImFileOpenNative(filename, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImFileHandle ImFileOpen(ref byte filename, ref byte mode) { fixed (byte* pfilename = &filename) { fixed (byte* pmode = &mode) { ImFileHandle ret = ImFileOpenNative((byte*)pfilename, (byte*)pmode); return ret; } } } /// /// To be documented. /// public static ImFileHandle ImFileOpen(ReadOnlySpan filename, ReadOnlySpan mode) { fixed (byte* pfilename = filename) { fixed (byte* pmode = mode) { ImFileHandle ret = ImFileOpenNative((byte*)pfilename, (byte*)pmode); return ret; } } } /// /// To be documented. /// public static ImFileHandle ImFileOpen(string filename, string mode) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (mode != null) { pStrSize1 = Utils.GetByteCountUTF8(mode); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } ImFileHandle ret = ImFileOpenNative(pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImFileHandle ImFileOpen(ref byte filename, ReadOnlySpan mode) { fixed (byte* pfilename = &filename) { fixed (byte* pmode = mode) { ImFileHandle ret = ImFileOpenNative((byte*)pfilename, (byte*)pmode); return ret; } } } /// /// To be documented. /// public static ImFileHandle ImFileOpen(ref byte filename, string mode) { fixed (byte* pfilename = &filename) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFileHandle ret = ImFileOpenNative((byte*)pfilename, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFileHandle ImFileOpen(ReadOnlySpan filename, ref byte mode) { fixed (byte* pfilename = filename) { fixed (byte* pmode = &mode) { ImFileHandle ret = ImFileOpenNative((byte*)pfilename, (byte*)pmode); return ret; } } } /// /// To be documented. /// public static ImFileHandle ImFileOpen(ReadOnlySpan filename, string mode) { fixed (byte* pfilename = filename) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFileHandle ret = ImFileOpenNative((byte*)pfilename, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFileHandle ImFileOpen(string filename, ref byte mode) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pmode = &mode) { ImFileHandle ret = ImFileOpenNative(pStr0, (byte*)pmode); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFileHandle ImFileOpen(string filename, ReadOnlySpan mode) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pmode = mode) { ImFileHandle ret = ImFileOpenNative(pStr0, (byte*)pmode); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ImFileCloseNative(ImFileHandle file) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[722])(file); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[722])(file); #endif } /// /// To be documented. /// public static bool ImFileClose(ImFileHandle file) { byte ret = ImFileCloseNative(file); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ulong ImFileGetSizeNative(ImFileHandle file) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[723])(file); #else return (ulong)((delegate* unmanaged[Cdecl])funcTable[723])(file); #endif } /// /// To be documented. /// public static ulong ImFileGetSize(ImFileHandle file) { ulong ret = ImFileGetSizeNative(file); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ulong ImFileReadNative(void* data, ulong size, ulong count, ImFileHandle file) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[724])(data, size, count, file); #else return (ulong)((delegate* unmanaged[Cdecl])funcTable[724])((nint)data, size, count, file); #endif } /// /// To be documented. /// public static ulong ImFileRead(void* data, ulong size, ulong count, ImFileHandle file) { ulong ret = ImFileReadNative(data, size, count, file); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ulong ImFileWriteNative(void* data, ulong size, ulong count, ImFileHandle file) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[725])(data, size, count, file); #else return (ulong)((delegate* unmanaged[Cdecl])funcTable[725])((nint)data, size, count, file); #endif } /// /// To be documented. /// public static ulong ImFileWrite(void* data, ulong size, ulong count, ImFileHandle file) { ulong ret = ImFileWriteNative(data, size, count, file); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void* ImFileLoadToMemoryNative(byte* filename, byte* mode, nuint* outFileSize, int paddingBytes) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[726])(filename, mode, outFileSize, paddingBytes); #else return (void*)((delegate* unmanaged[Cdecl])funcTable[726])((nint)filename, (nint)mode, (nint)outFileSize, paddingBytes); #endif } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, byte* mode, nuint* outFileSize, int paddingBytes) { void* ret = ImFileLoadToMemoryNative(filename, mode, outFileSize, paddingBytes); return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, byte* mode, nuint* outFileSize) { void* ret = ImFileLoadToMemoryNative(filename, mode, outFileSize, (int)(0)); return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, byte* mode) { void* ret = ImFileLoadToMemoryNative(filename, mode, (nuint*)(default), (int)(0)); return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, byte* mode, int paddingBytes) { void* ret = ImFileLoadToMemoryNative(filename, mode, (nuint*)(default), paddingBytes); return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, byte* mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = &filename) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, outFileSize, paddingBytes); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, byte* mode, nuint* outFileSize) { fixed (byte* pfilename = &filename) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, outFileSize, (int)(0)); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, byte* mode) { fixed (byte* pfilename = &filename) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), (int)(0)); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, byte* mode, int paddingBytes) { fixed (byte* pfilename = &filename) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), paddingBytes); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, byte* mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = filename) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, outFileSize, paddingBytes); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, byte* mode, nuint* outFileSize) { fixed (byte* pfilename = filename) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, outFileSize, (int)(0)); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, byte* mode) { fixed (byte* pfilename = filename) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), (int)(0)); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, byte* mode, int paddingBytes) { fixed (byte* pfilename = filename) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), paddingBytes); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, byte* mode, nuint* outFileSize, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative(pStr0, mode, outFileSize, paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, byte* mode, nuint* outFileSize) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative(pStr0, mode, outFileSize, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, byte* mode) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative(pStr0, mode, (nuint*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, byte* mode, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative(pStr0, mode, (nuint*)(default), paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, ref byte mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, paddingBytes); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, ref byte mode, nuint* outFileSize) { fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, (int)(0)); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, ref byte mode) { fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), (int)(0)); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, ref byte mode, int paddingBytes) { fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), paddingBytes); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, paddingBytes); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan mode, nuint* outFileSize) { fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, (int)(0)); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan mode) { fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), (int)(0)); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan mode, int paddingBytes) { fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), paddingBytes); return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, string mode, nuint* outFileSize, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative(filename, pStr0, outFileSize, paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, string mode, nuint* outFileSize) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative(filename, pStr0, outFileSize, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, string mode) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative(filename, pStr0, (nuint*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(byte* filename, string mode, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative(filename, pStr0, (nuint*)(default), paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = &filename) { fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, paddingBytes); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, nuint* outFileSize) { fixed (byte* pfilename = &filename) { fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, (int)(0)); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, ref byte mode) { fixed (byte* pfilename = &filename) { fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, int paddingBytes) { fixed (byte* pfilename = &filename) { fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, ReadOnlySpan mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = filename) { fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, paddingBytes); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, ReadOnlySpan mode, nuint* outFileSize) { fixed (byte* pfilename = filename) { fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, (int)(0)); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, ReadOnlySpan mode) { fixed (byte* pfilename = filename) { fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, ReadOnlySpan mode, int paddingBytes) { fixed (byte* pfilename = filename) { fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, string mode, nuint* outFileSize, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (mode != null) { pStrSize1 = Utils.GetByteCountUTF8(mode); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, outFileSize, paddingBytes); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, string mode, nuint* outFileSize) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (mode != null) { pStrSize1 = Utils.GetByteCountUTF8(mode); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, outFileSize, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, string mode) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (mode != null) { pStrSize1 = Utils.GetByteCountUTF8(mode); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (nuint*)(default), (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, string mode, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (mode != null) { pStrSize1 = Utils.GetByteCountUTF8(mode); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (nuint*)(default), paddingBytes); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = &filename) { fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, paddingBytes); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan mode, nuint* outFileSize) { fixed (byte* pfilename = &filename) { fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, (int)(0)); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan mode) { fixed (byte* pfilename = &filename) { fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan mode, int paddingBytes) { fixed (byte* pfilename = &filename) { fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, string mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = &filename) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, outFileSize, paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, string mode, nuint* outFileSize) { fixed (byte* pfilename = &filename) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, outFileSize, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, string mode) { fixed (byte* pfilename = &filename) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ref byte filename, string mode, int paddingBytes) { fixed (byte* pfilename = &filename) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, ref byte mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = filename) { fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, paddingBytes); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, ref byte mode, nuint* outFileSize) { fixed (byte* pfilename = filename) { fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, (int)(0)); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, ref byte mode) { fixed (byte* pfilename = filename) { fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, ref byte mode, int paddingBytes) { fixed (byte* pfilename = filename) { fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); return ret; } } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, string mode, nuint* outFileSize, int paddingBytes) { fixed (byte* pfilename = filename) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, outFileSize, paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, string mode, nuint* outFileSize) { fixed (byte* pfilename = filename) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, outFileSize, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, string mode) { fixed (byte* pfilename = filename) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(ReadOnlySpan filename, string mode, int paddingBytes) { fixed (byte* pfilename = filename) { byte* pStr0 = null; int pStrSize0 = 0; if (mode != null) { pStrSize0 = Utils.GetByteCountUTF8(mode); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, ref byte mode, nuint* outFileSize, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, outFileSize, paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, ref byte mode, nuint* outFileSize) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, outFileSize, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, ref byte mode) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (nuint*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, ref byte mode, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pmode = &mode) { void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (nuint*)(default), paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode, nuint* outFileSize, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, outFileSize, paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode, nuint* outFileSize) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, outFileSize, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (nuint*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static void* ImFileLoadToMemory(string filename, ReadOnlySpan mode, int paddingBytes) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pmode = mode) { void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (nuint*)(default), paddingBytes); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float ImPowNative(float x, float y) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[727])(x, y); #else return (float)((delegate* unmanaged[Cdecl])funcTable[727])(x, y); #endif } /// /// To be documented. /// public static float ImPow(float x, float y) { float ret = ImPowNative(x, y); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static double ImPowNative(double x, double y) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[728])(x, y); #else return (double)((delegate* unmanaged[Cdecl])funcTable[728])(x, y); #endif } /// /// To be documented. /// public static double ImPow(double x, double y) { double ret = ImPowNative(x, y); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float ImLogNative(float x) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[729])(x); #else return (float)((delegate* unmanaged[Cdecl])funcTable[729])(x); #endif } /// /// To be documented. /// public static float ImLog(float x) { float ret = ImLogNative(x); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static double ImLogNative(double x) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[730])(x); #else return (double)((delegate* unmanaged[Cdecl])funcTable[730])(x); #endif } /// /// To be documented. /// public static double ImLog(double x) { double ret = ImLogNative(x); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int ImAbsNative(int x) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[731])(x); #else return (int)((delegate* unmanaged[Cdecl])funcTable[731])(x); #endif } /// /// To be documented. /// public static int ImAbs(int x) { int ret = ImAbsNative(x); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float ImAbsNative(float x) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[732])(x); #else return (float)((delegate* unmanaged[Cdecl])funcTable[732])(x); #endif } /// /// To be documented. /// public static float ImAbs(float x) { float ret = ImAbsNative(x); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static double ImAbsNative(double x) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[733])(x); #else return (double)((delegate* unmanaged[Cdecl])funcTable[733])(x); #endif } /// /// To be documented. /// public static double ImAbs(double x) { double ret = ImAbsNative(x); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float ImSignNative(float x) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[734])(x); #else return (float)((delegate* unmanaged[Cdecl])funcTable[734])(x); #endif } /// /// To be documented. /// public static float ImSign(float x) { float ret = ImSignNative(x); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static double ImSignNative(double x) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[735])(x); #else return (double)((delegate* unmanaged[Cdecl])funcTable[735])(x); #endif } /// /// To be documented. /// public static double ImSign(double x) { double ret = ImSignNative(x); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float ImRsqrtNative(float x) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[736])(x); #else return (float)((delegate* unmanaged[Cdecl])funcTable[736])(x); #endif } /// /// To be documented. /// public static float ImRsqrt(float x) { float ret = ImRsqrtNative(x); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static double ImRsqrtNative(double x) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[737])(x); #else return (double)((delegate* unmanaged[Cdecl])funcTable[737])(x); #endif } /// /// To be documented. /// public static double ImRsqrt(double x) { double ret = ImRsqrtNative(x); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImMinNative(Vector2* pOut, Vector2 lhs, Vector2 rhs) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[738])(pOut, lhs, rhs); #else ((delegate* unmanaged[Cdecl])funcTable[738])((nint)pOut, lhs, rhs); #endif } /// /// To be documented. /// public static Vector2 ImMin(Vector2 lhs, Vector2 rhs) { Vector2 ret; ImMinNative(&ret, lhs, rhs); return ret; } /// /// To be documented. /// public static void ImMin(Vector2* pOut, Vector2 lhs, Vector2 rhs) { ImMinNative(pOut, lhs, rhs); } /// /// To be documented. /// public static void ImMin(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) { fixed (Vector2* ppOut = &pOut) { ImMinNative((Vector2*)ppOut, lhs, rhs); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImMaxNative(Vector2* pOut, Vector2 lhs, Vector2 rhs) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[739])(pOut, lhs, rhs); #else ((delegate* unmanaged[Cdecl])funcTable[739])((nint)pOut, lhs, rhs); #endif } /// /// To be documented. /// public static Vector2 ImMax(Vector2 lhs, Vector2 rhs) { Vector2 ret; ImMaxNative(&ret, lhs, rhs); return ret; } /// /// To be documented. /// public static void ImMax(Vector2* pOut, Vector2 lhs, Vector2 rhs) { ImMaxNative(pOut, lhs, rhs); } /// /// To be documented. /// public static void ImMax(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) { fixed (Vector2* ppOut = &pOut) { ImMaxNative((Vector2*)ppOut, lhs, rhs); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImClampNative(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[740])(pOut, v, mn, mx); #else ((delegate* unmanaged[Cdecl])funcTable[740])((nint)pOut, v, mn, mx); #endif } /// /// To be documented. /// public static Vector2 ImClamp(Vector2 v, Vector2 mn, Vector2 mx) { Vector2 ret; ImClampNative(&ret, v, mn, mx); return ret; } /// /// To be documented. /// public static void ImClamp(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx) { ImClampNative(pOut, v, mn, mx); } /// /// To be documented. /// public static void ImClamp(ref Vector2 pOut, Vector2 v, Vector2 mn, Vector2 mx) { fixed (Vector2* ppOut = &pOut) { ImClampNative((Vector2*)ppOut, v, mn, mx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImLerpNative(Vector2* pOut, Vector2 a, Vector2 b, float t) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[741])(pOut, a, b, t); #else ((delegate* unmanaged[Cdecl])funcTable[741])((nint)pOut, a, b, t); #endif } /// /// To be documented. /// public static Vector2 ImLerp(Vector2 a, Vector2 b, float t) { Vector2 ret; ImLerpNative(&ret, a, b, t); return ret; } /// /// To be documented. /// public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, float t) { ImLerpNative(pOut, a, b, t); } /// /// To be documented. /// public static void ImLerp(ref Vector2 pOut, Vector2 a, Vector2 b, float t) { fixed (Vector2* ppOut = &pOut) { ImLerpNative((Vector2*)ppOut, a, b, t); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImLerpNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[742])(pOut, a, b, t); #else ((delegate* unmanaged[Cdecl])funcTable[742])((nint)pOut, a, b, t); #endif } /// /// To be documented. /// public static Vector2 ImLerp(Vector2 a, Vector2 b, Vector2 t) { Vector2 ret; ImLerpNative(&ret, a, b, t); return ret; } /// /// To be documented. /// public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t) { ImLerpNative(pOut, a, b, t); } /// /// To be documented. /// public static void ImLerp(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 t) { fixed (Vector2* ppOut = &pOut) { ImLerpNative((Vector2*)ppOut, a, b, t); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImLerpNative(Vector4* pOut, Vector4 a, Vector4 b, float t) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[743])(pOut, a, b, t); #else ((delegate* unmanaged[Cdecl])funcTable[743])((nint)pOut, a, b, t); #endif } /// /// To be documented. /// public static Vector4 ImLerp(Vector4 a, Vector4 b, float t) { Vector4 ret; ImLerpNative(&ret, a, b, t); return ret; } /// /// To be documented. /// public static void ImLerp(Vector4* pOut, Vector4 a, Vector4 b, float t) { ImLerpNative(pOut, a, b, t); } /// /// To be documented. /// public static void ImLerp(ref Vector4 pOut, Vector4 a, Vector4 b, float t) { fixed (Vector4* ppOut = &pOut) { ImLerpNative((Vector4*)ppOut, a, b, t); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float ImSaturateNative(float f) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[744])(f); #else return (float)((delegate* unmanaged[Cdecl])funcTable[744])(f); #endif } /// /// To be documented. /// public static float ImSaturate(float f) { float ret = ImSaturateNative(f); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float ImLengthSqrNative(Vector2 lhs) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[745])(lhs); #else return (float)((delegate* unmanaged[Cdecl])funcTable[745])(lhs); #endif } /// /// To be documented. /// public static float ImLengthSqr(Vector2 lhs) { float ret = ImLengthSqrNative(lhs); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float ImLengthSqrNative(Vector4 lhs) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[746])(lhs); #else return (float)((delegate* unmanaged[Cdecl])funcTable[746])(lhs); #endif } /// /// To be documented. /// public static float ImLengthSqr(Vector4 lhs) { float ret = ImLengthSqrNative(lhs); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float ImInvLengthNative(Vector2 lhs, float failValue) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[747])(lhs, failValue); #else return (float)((delegate* unmanaged[Cdecl])funcTable[747])(lhs, failValue); #endif } /// /// To be documented. /// public static float ImInvLength(Vector2 lhs, float failValue) { float ret = ImInvLengthNative(lhs, failValue); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float ImFloorNative(float f) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[748])(f); #else return (float)((delegate* unmanaged[Cdecl])funcTable[748])(f); #endif } /// /// To be documented. /// public static float ImFloor(float f) { float ret = ImFloorNative(f); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float ImFloorSignedNative(float f) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[749])(f); #else return (float)((delegate* unmanaged[Cdecl])funcTable[749])(f); #endif } /// /// To be documented. /// public static float ImFloorSigned(float f) { float ret = ImFloorSignedNative(f); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImFloorNative(Vector2* pOut, Vector2 v) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[750])(pOut, v); #else ((delegate* unmanaged[Cdecl])funcTable[750])((nint)pOut, v); #endif } /// /// To be documented. /// public static Vector2 ImFloor(Vector2 v) { Vector2 ret; ImFloorNative(&ret, v); return ret; } /// /// To be documented. /// public static void ImFloor(Vector2* pOut, Vector2 v) { ImFloorNative(pOut, v); } /// /// To be documented. /// public static void ImFloor(ref Vector2 pOut, Vector2 v) { fixed (Vector2* ppOut = &pOut) { ImFloorNative((Vector2*)ppOut, v); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImFloorSignedNative(Vector2* pOut, Vector2 v) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[751])(pOut, v); #else ((delegate* unmanaged[Cdecl])funcTable[751])((nint)pOut, v); #endif } /// /// To be documented. /// public static Vector2 ImFloorSigned(Vector2 v) { Vector2 ret; ImFloorSignedNative(&ret, v); return ret; } /// /// To be documented. /// public static void ImFloorSigned(Vector2* pOut, Vector2 v) { ImFloorSignedNative(pOut, v); } /// /// To be documented. /// public static void ImFloorSigned(ref Vector2 pOut, Vector2 v) { fixed (Vector2* ppOut = &pOut) { ImFloorSignedNative((Vector2*)ppOut, v); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int ImModPositiveNative(int a, int b) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[752])(a, b); #else return (int)((delegate* unmanaged[Cdecl])funcTable[752])(a, b); #endif } /// /// To be documented. /// public static int ImModPositive(int a, int b) { int ret = ImModPositiveNative(a, b); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float ImDotNative(Vector2 a, Vector2 b) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[753])(a, b); #else return (float)((delegate* unmanaged[Cdecl])funcTable[753])(a, b); #endif } /// /// To be documented. /// public static float ImDot(Vector2 a, Vector2 b) { float ret = ImDotNative(a, b); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImRotateNative(Vector2* pOut, Vector2 v, float cosA, float sinA) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[754])(pOut, v, cosA, sinA); #else ((delegate* unmanaged[Cdecl])funcTable[754])((nint)pOut, v, cosA, sinA); #endif } /// /// To be documented. /// public static Vector2 ImRotate(Vector2 v, float cosA, float sinA) { Vector2 ret; ImRotateNative(&ret, v, cosA, sinA); return ret; } /// /// To be documented. /// public static void ImRotate(Vector2* pOut, Vector2 v, float cosA, float sinA) { ImRotateNative(pOut, v, cosA, sinA); } /// /// To be documented. /// public static void ImRotate(ref Vector2 pOut, Vector2 v, float cosA, float sinA) { fixed (Vector2* ppOut = &pOut) { ImRotateNative((Vector2*)ppOut, v, cosA, sinA); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float ImLinearSweepNative(float current, float target, float speed) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[755])(current, target, speed); #else return (float)((delegate* unmanaged[Cdecl])funcTable[755])(current, target, speed); #endif } /// /// To be documented. /// public static float ImLinearSweep(float current, float target, float speed) { float ret = ImLinearSweepNative(current, target, speed); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImMulNative(Vector2* pOut, Vector2 lhs, Vector2 rhs) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[756])(pOut, lhs, rhs); #else ((delegate* unmanaged[Cdecl])funcTable[756])((nint)pOut, lhs, rhs); #endif } /// /// To be documented. /// public static Vector2 ImMul(Vector2 lhs, Vector2 rhs) { Vector2 ret; ImMulNative(&ret, lhs, rhs); return ret; } /// /// To be documented. /// public static void ImMul(Vector2* pOut, Vector2 lhs, Vector2 rhs) { ImMulNative(pOut, lhs, rhs); } /// /// To be documented. /// public static void ImMul(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) { fixed (Vector2* ppOut = &pOut) { ImMulNative((Vector2*)ppOut, lhs, rhs); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ImIsFloatAboveGuaranteedIntegerPrecisionNative(float f) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[757])(f); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[757])(f); #endif } /// /// To be documented. /// public static bool ImIsFloatAboveGuaranteedIntegerPrecision(float f) { byte ret = ImIsFloatAboveGuaranteedIntegerPrecisionNative(f); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImBezierCubicCalcNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[758])(pOut, p1, p2, p3, p4, t); #else ((delegate* unmanaged[Cdecl])funcTable[758])((nint)pOut, p1, p2, p3, p4, t); #endif } /// /// To be documented. /// public static Vector2 ImBezierCubicCalc(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) { Vector2 ret; ImBezierCubicCalcNative(&ret, p1, p2, p3, p4, t); return ret; } /// /// To be documented. /// public static void ImBezierCubicCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) { ImBezierCubicCalcNative(pOut, p1, p2, p3, p4, t); } /// /// To be documented. /// public static void ImBezierCubicCalc(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) { fixed (Vector2* ppOut = &pOut) { ImBezierCubicCalcNative((Vector2*)ppOut, p1, p2, p3, p4, t); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImBezierCubicClosestPointNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[759])(pOut, p1, p2, p3, p4, p, numSegments); #else ((delegate* unmanaged[Cdecl])funcTable[759])((nint)pOut, p1, p2, p3, p4, p, numSegments); #endif } /// /// To be documented. /// public static Vector2 ImBezierCubicClosestPoint(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) { Vector2 ret; ImBezierCubicClosestPointNative(&ret, p1, p2, p3, p4, p, numSegments); return ret; } /// /// To be documented. /// public static void ImBezierCubicClosestPoint(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) { ImBezierCubicClosestPointNative(pOut, p1, p2, p3, p4, p, numSegments); } /// /// To be documented. /// public static void ImBezierCubicClosestPoint(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) { fixed (Vector2* ppOut = &pOut) { ImBezierCubicClosestPointNative((Vector2*)ppOut, p1, p2, p3, p4, p, numSegments); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImBezierCubicClosestPointCasteljauNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[760])(pOut, p1, p2, p3, p4, p, tessTol); #else ((delegate* unmanaged[Cdecl])funcTable[760])((nint)pOut, p1, p2, p3, p4, p, tessTol); #endif } /// /// To be documented. /// public static Vector2 ImBezierCubicClosestPointCasteljau(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) { Vector2 ret; ImBezierCubicClosestPointCasteljauNative(&ret, p1, p2, p3, p4, p, tessTol); return ret; } /// /// To be documented. /// public static void ImBezierCubicClosestPointCasteljau(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) { ImBezierCubicClosestPointCasteljauNative(pOut, p1, p2, p3, p4, p, tessTol); } /// /// To be documented. /// public static void ImBezierCubicClosestPointCasteljau(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) { fixed (Vector2* ppOut = &pOut) { ImBezierCubicClosestPointCasteljauNative((Vector2*)ppOut, p1, p2, p3, p4, p, tessTol); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImBezierQuadraticCalcNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[761])(pOut, p1, p2, p3, t); #else ((delegate* unmanaged[Cdecl])funcTable[761])((nint)pOut, p1, p2, p3, t); #endif } /// /// To be documented. /// public static Vector2 ImBezierQuadraticCalc(Vector2 p1, Vector2 p2, Vector2 p3, float t) { Vector2 ret; ImBezierQuadraticCalcNative(&ret, p1, p2, p3, t); return ret; } /// /// To be documented. /// public static void ImBezierQuadraticCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) { ImBezierQuadraticCalcNative(pOut, p1, p2, p3, t); } /// /// To be documented. /// public static void ImBezierQuadraticCalc(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) { fixed (Vector2* ppOut = &pOut) { ImBezierQuadraticCalcNative((Vector2*)ppOut, p1, p2, p3, t); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImLineClosestPointNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[762])(pOut, a, b, p); #else ((delegate* unmanaged[Cdecl])funcTable[762])((nint)pOut, a, b, p); #endif } /// /// To be documented. /// public static Vector2 ImLineClosestPoint(Vector2 a, Vector2 b, Vector2 p) { Vector2 ret; ImLineClosestPointNative(&ret, a, b, p); return ret; } /// /// To be documented. /// public static void ImLineClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p) { ImLineClosestPointNative(pOut, a, b, p); } /// /// To be documented. /// public static void ImLineClosestPoint(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 p) { fixed (Vector2* ppOut = &pOut) { ImLineClosestPointNative((Vector2*)ppOut, a, b, p); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ImTriangleContainsPointNative(Vector2 a, Vector2 b, Vector2 c, Vector2 p) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[763])(a, b, c, p); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[763])(a, b, c, p); #endif } /// /// To be documented. /// public static bool ImTriangleContainsPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p) { byte ret = ImTriangleContainsPointNative(a, b, c, p); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImTriangleClosestPointNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[764])(pOut, a, b, c, p); #else ((delegate* unmanaged[Cdecl])funcTable[764])((nint)pOut, a, b, c, p); #endif } /// /// To be documented. /// public static Vector2 ImTriangleClosestPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p) { Vector2 ret; ImTriangleClosestPointNative(&ret, a, b, c, p); return ret; } /// /// To be documented. /// public static void ImTriangleClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) { ImTriangleClosestPointNative(pOut, a, b, c, p); } /// /// To be documented. /// public static void ImTriangleClosestPoint(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) { fixed (Vector2* ppOut = &pOut) { ImTriangleClosestPointNative((Vector2*)ppOut, a, b, c, p); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImTriangleBarycentricCoordsNative(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[765])(a, b, c, p, outU, outV, outW); #else ((delegate* unmanaged[Cdecl])funcTable[765])(a, b, c, p, (nint)outU, (nint)outV, (nint)outW); #endif } /// /// To be documented. /// public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW) { ImTriangleBarycentricCoordsNative(a, b, c, p, outU, outV, outW); } /// /// To be documented. /// public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, float* outW) { fixed (float* poutU = &outU) { ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, outV, outW); } } /// /// To be documented. /// public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, float* outW) { fixed (float* poutV = &outV) { ImTriangleBarycentricCoordsNative(a, b, c, p, outU, (float*)poutV, outW); } } /// /// To be documented. /// public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, ref float outV, float* outW) { fixed (float* poutU = &outU) { fixed (float* poutV = &outV) { ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, (float*)poutV, outW); } } } /// /// To be documented. /// public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, ref float outW) { fixed (float* poutW = &outW) { ImTriangleBarycentricCoordsNative(a, b, c, p, outU, outV, (float*)poutW); } } /// /// To be documented. /// public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, ref float outW) { fixed (float* poutU = &outU) { fixed (float* poutW = &outW) { ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, outV, (float*)poutW); } } } /// /// To be documented. /// public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, ref float outW) { fixed (float* poutV = &outV) { fixed (float* poutW = &outW) { ImTriangleBarycentricCoordsNative(a, b, c, p, outU, (float*)poutV, (float*)poutW); } } } /// /// To be documented. /// public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, ref float outV, ref float outW) { fixed (float* poutU = &outU) { fixed (float* poutV = &outV) { fixed (float* poutW = &outW) { ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, (float*)poutV, (float*)poutW); } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float ImTriangleAreaNative(Vector2 a, Vector2 b, Vector2 c) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[766])(a, b, c); #else return (float)((delegate* unmanaged[Cdecl])funcTable[766])(a, b, c); #endif } /// /// To be documented. /// public static float ImTriangleArea(Vector2 a, Vector2 b, Vector2 c) { float ret = ImTriangleAreaNative(a, b, c); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiDir ImGetDirQuadrantFromDeltaNative(float dx, float dy) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[767])(dx, dy); #else return (ImGuiDir)((delegate* unmanaged[Cdecl])funcTable[767])(dx, dy); #endif } /// /// To be documented. /// public static ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy) { ImGuiDir ret = ImGetDirQuadrantFromDeltaNative(dx, dy); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImVec1* ImVec1Native() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[768])(); #else return (ImVec1*)((delegate* unmanaged[Cdecl])funcTable[768])(); #endif } /// /// To be documented. /// public static ImVec1Ptr ImVec1() { ImVec1Ptr ret = ImVec1Native(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImVec1* ImVec1Native(float x) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[769])(x); #else return (ImVec1*)((delegate* unmanaged[Cdecl])funcTable[769])(x); #endif } /// /// To be documented. /// public static ImVec1Ptr ImVec1(float x) { ImVec1Ptr ret = ImVec1Native(x); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImVec2Ih* ImVec2ihNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[770])(); #else return (ImVec2Ih*)((delegate* unmanaged[Cdecl])funcTable[770])(); #endif } /// /// To be documented. /// public static ImVec2IhPtr ImVec2ih() { ImVec2IhPtr ret = ImVec2ihNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImVec2Ih* ImVec2ihNative(short x, short y) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[771])(x, y); #else return (ImVec2Ih*)((delegate* unmanaged[Cdecl])funcTable[771])(x, y); #endif } /// /// To be documented. /// public static ImVec2IhPtr ImVec2ih(short x, short y) { ImVec2IhPtr ret = ImVec2ihNative(x, y); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImVec2Ih* ImVec2ihNative(Vector2 rhs) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[772])(rhs); #else return (ImVec2Ih*)((delegate* unmanaged[Cdecl])funcTable[772])(rhs); #endif } /// /// To be documented. /// public static ImVec2IhPtr ImVec2ih(Vector2 rhs) { ImVec2IhPtr ret = ImVec2ihNative(rhs); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImRect* ImRectNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[773])(); #else return (ImRect*)((delegate* unmanaged[Cdecl])funcTable[773])(); #endif } /// /// To be documented. /// public static ImRectPtr ImRect() { ImRectPtr ret = ImRectNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImRect* ImRectNative(Vector2 min, Vector2 max) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[774])(min, max); #else return (ImRect*)((delegate* unmanaged[Cdecl])funcTable[774])(min, max); #endif } /// /// To be documented. /// public static ImRectPtr ImRect(Vector2 min, Vector2 max) { ImRectPtr ret = ImRectNative(min, max); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImRect* ImRectNative(Vector4 v) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[775])(v); #else return (ImRect*)((delegate* unmanaged[Cdecl])funcTable[775])(v); #endif } /// /// To be documented. /// public static ImRectPtr ImRect(Vector4 v) { ImRectPtr ret = ImRectNative(v); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImRect* ImRectNative(float x1, float y1, float x2, float y2) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[776])(x1, y1, x2, y2); #else return (ImRect*)((delegate* unmanaged[Cdecl])funcTable[776])(x1, y1, x2, y2); #endif } /// /// To be documented. /// public static ImRectPtr ImRect(float x1, float y1, float x2, float y2) { ImRectPtr ret = ImRectNative(x1, y1, x2, y2); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetCenterNative(Vector2* pOut, ImRect* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[777])(pOut, self); #else ((delegate* unmanaged[Cdecl])funcTable[777])((nint)pOut, (nint)self); #endif } /// /// To be documented. /// public static Vector2 GetCenter(ImRectPtr self) { Vector2 ret; GetCenterNative(&ret, self); return ret; } /// /// To be documented. /// public static void GetCenter(Vector2* pOut, ImRectPtr self) { GetCenterNative(pOut, self); } /// /// To be documented. /// public static void GetCenter(ref Vector2 pOut, ImRectPtr self) { fixed (Vector2* ppOut = &pOut) { GetCenterNative((Vector2*)ppOut, self); } } /// /// To be documented. /// public static Vector2 GetCenter(ref ImRect self) { fixed (ImRect* pself = &self) { Vector2 ret; GetCenterNative(&ret, (ImRect*)pself); return ret; } } /// /// To be documented. /// public static void GetCenter(Vector2* pOut, ref ImRect self) { fixed (ImRect* pself = &self) { GetCenterNative(pOut, (ImRect*)pself); } } /// /// To be documented. /// public static void GetCenter(ref Vector2 pOut, ref ImRect self) { fixed (Vector2* ppOut = &pOut) { fixed (ImRect* pself = &self) { GetCenterNative((Vector2*)ppOut, (ImRect*)pself); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetSizeNative(Vector2* pOut, ImRect* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[778])(pOut, self); #else ((delegate* unmanaged[Cdecl])funcTable[778])((nint)pOut, (nint)self); #endif } /// /// To be documented. /// public static Vector2 GetSize(ImRectPtr self) { Vector2 ret; GetSizeNative(&ret, self); return ret; } /// /// To be documented. /// public static void GetSize(Vector2* pOut, ImRectPtr self) { GetSizeNative(pOut, self); } /// /// To be documented. /// public static void GetSize(ref Vector2 pOut, ImRectPtr self) { fixed (Vector2* ppOut = &pOut) { GetSizeNative((Vector2*)ppOut, self); } } /// /// To be documented. /// public static Vector2 GetSize(ref ImRect self) { fixed (ImRect* pself = &self) { Vector2 ret; GetSizeNative(&ret, (ImRect*)pself); return ret; } } /// /// To be documented. /// public static void GetSize(Vector2* pOut, ref ImRect self) { fixed (ImRect* pself = &self) { GetSizeNative(pOut, (ImRect*)pself); } } /// /// To be documented. /// public static void GetSize(ref Vector2 pOut, ref ImRect self) { fixed (Vector2* ppOut = &pOut) { fixed (ImRect* pself = &self) { GetSizeNative((Vector2*)ppOut, (ImRect*)pself); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetWidthNative(ImRect* self) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[779])(self); #else return (float)((delegate* unmanaged[Cdecl])funcTable[779])((nint)self); #endif } /// /// To be documented. /// public static float GetWidth(ImRectPtr self) { float ret = GetWidthNative(self); return ret; } /// /// To be documented. /// public static float GetWidth(ref ImRect self) { fixed (ImRect* pself = &self) { float ret = GetWidthNative((ImRect*)pself); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetHeightNative(ImRect* self) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[780])(self); #else return (float)((delegate* unmanaged[Cdecl])funcTable[780])((nint)self); #endif } /// /// To be documented. /// public static float GetHeight(ImRectPtr self) { float ret = GetHeightNative(self); return ret; } /// /// To be documented. /// public static float GetHeight(ref ImRect self) { fixed (ImRect* pself = &self) { float ret = GetHeightNative((ImRect*)pself); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetAreaNative(ImRect* self) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[781])(self); #else return (float)((delegate* unmanaged[Cdecl])funcTable[781])((nint)self); #endif } /// /// To be documented. /// public static float GetArea(ImRectPtr self) { float ret = GetAreaNative(self); return ret; } /// /// To be documented. /// public static float GetArea(ref ImRect self) { fixed (ImRect* pself = &self) { float ret = GetAreaNative((ImRect*)pself); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetTLNative(Vector2* pOut, ImRect* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[782])(pOut, self); #else ((delegate* unmanaged[Cdecl])funcTable[782])((nint)pOut, (nint)self); #endif } /// /// To be documented. /// public static Vector2 GetTL(ImRectPtr self) { Vector2 ret; GetTLNative(&ret, self); return ret; } /// /// To be documented. /// public static void GetTL(Vector2* pOut, ImRectPtr self) { GetTLNative(pOut, self); } /// /// To be documented. /// public static void GetTL(ref Vector2 pOut, ImRectPtr self) { fixed (Vector2* ppOut = &pOut) { GetTLNative((Vector2*)ppOut, self); } } /// /// To be documented. /// public static Vector2 GetTL(ref ImRect self) { fixed (ImRect* pself = &self) { Vector2 ret; GetTLNative(&ret, (ImRect*)pself); return ret; } } /// /// To be documented. /// public static void GetTL(Vector2* pOut, ref ImRect self) { fixed (ImRect* pself = &self) { GetTLNative(pOut, (ImRect*)pself); } } /// /// To be documented. /// public static void GetTL(ref Vector2 pOut, ref ImRect self) { fixed (Vector2* ppOut = &pOut) { fixed (ImRect* pself = &self) { GetTLNative((Vector2*)ppOut, (ImRect*)pself); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetTRNative(Vector2* pOut, ImRect* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[783])(pOut, self); #else ((delegate* unmanaged[Cdecl])funcTable[783])((nint)pOut, (nint)self); #endif } /// /// To be documented. /// public static Vector2 GetTR(ImRectPtr self) { Vector2 ret; GetTRNative(&ret, self); return ret; } /// /// To be documented. /// public static void GetTR(Vector2* pOut, ImRectPtr self) { GetTRNative(pOut, self); } /// /// To be documented. /// public static void GetTR(ref Vector2 pOut, ImRectPtr self) { fixed (Vector2* ppOut = &pOut) { GetTRNative((Vector2*)ppOut, self); } } /// /// To be documented. /// public static Vector2 GetTR(ref ImRect self) { fixed (ImRect* pself = &self) { Vector2 ret; GetTRNative(&ret, (ImRect*)pself); return ret; } } /// /// To be documented. /// public static void GetTR(Vector2* pOut, ref ImRect self) { fixed (ImRect* pself = &self) { GetTRNative(pOut, (ImRect*)pself); } } /// /// To be documented. /// public static void GetTR(ref Vector2 pOut, ref ImRect self) { fixed (Vector2* ppOut = &pOut) { fixed (ImRect* pself = &self) { GetTRNative((Vector2*)ppOut, (ImRect*)pself); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetBLNative(Vector2* pOut, ImRect* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[784])(pOut, self); #else ((delegate* unmanaged[Cdecl])funcTable[784])((nint)pOut, (nint)self); #endif } /// /// To be documented. /// public static Vector2 GetBL(ImRectPtr self) { Vector2 ret; GetBLNative(&ret, self); return ret; } /// /// To be documented. /// public static void GetBL(Vector2* pOut, ImRectPtr self) { GetBLNative(pOut, self); } /// /// To be documented. /// public static void GetBL(ref Vector2 pOut, ImRectPtr self) { fixed (Vector2* ppOut = &pOut) { GetBLNative((Vector2*)ppOut, self); } } /// /// To be documented. /// public static Vector2 GetBL(ref ImRect self) { fixed (ImRect* pself = &self) { Vector2 ret; GetBLNative(&ret, (ImRect*)pself); return ret; } } /// /// To be documented. /// public static void GetBL(Vector2* pOut, ref ImRect self) { fixed (ImRect* pself = &self) { GetBLNative(pOut, (ImRect*)pself); } } /// /// To be documented. /// public static void GetBL(ref Vector2 pOut, ref ImRect self) { fixed (Vector2* ppOut = &pOut) { fixed (ImRect* pself = &self) { GetBLNative((Vector2*)ppOut, (ImRect*)pself); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetBRNative(Vector2* pOut, ImRect* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[785])(pOut, self); #else ((delegate* unmanaged[Cdecl])funcTable[785])((nint)pOut, (nint)self); #endif } /// /// To be documented. /// public static Vector2 GetBR(ImRectPtr self) { Vector2 ret; GetBRNative(&ret, self); return ret; } /// /// To be documented. /// public static void GetBR(Vector2* pOut, ImRectPtr self) { GetBRNative(pOut, self); } /// /// To be documented. /// public static void GetBR(ref Vector2 pOut, ImRectPtr self) { fixed (Vector2* ppOut = &pOut) { GetBRNative((Vector2*)ppOut, self); } } /// /// To be documented. /// public static Vector2 GetBR(ref ImRect self) { fixed (ImRect* pself = &self) { Vector2 ret; GetBRNative(&ret, (ImRect*)pself); return ret; } } /// /// To be documented. /// public static void GetBR(Vector2* pOut, ref ImRect self) { fixed (ImRect* pself = &self) { GetBRNative(pOut, (ImRect*)pself); } } /// /// To be documented. /// public static void GetBR(ref Vector2 pOut, ref ImRect self) { fixed (Vector2* ppOut = &pOut) { fixed (ImRect* pself = &self) { GetBRNative((Vector2*)ppOut, (ImRect*)pself); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ContainsNative(ImRect* self, Vector2 p) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[786])(self, p); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[786])((nint)self, p); #endif } /// /// To be documented. /// public static bool Contains(ImRectPtr self, Vector2 p) { byte ret = ContainsNative(self, p); return ret != 0; } /// /// To be documented. /// public static bool Contains(ref ImRect self, Vector2 p) { fixed (ImRect* pself = &self) { byte ret = ContainsNative((ImRect*)pself, p); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ContainsNative(ImRect* self, ImRect r) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[787])(self, r); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[787])((nint)self, r); #endif } /// /// To be documented. /// public static bool Contains(ImRectPtr self, ImRect r) { byte ret = ContainsNative(self, r); return ret != 0; } /// /// To be documented. /// public static bool Contains(ref ImRect self, ImRect r) { fixed (ImRect* pself = &self) { byte ret = ContainsNative((ImRect*)pself, r); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte OverlapsNative(ImRect* self, ImRect r) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[788])(self, r); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[788])((nint)self, r); #endif } /// /// To be documented. /// public static bool Overlaps(ImRectPtr self, ImRect r) { byte ret = OverlapsNative(self, r); return ret != 0; } /// /// To be documented. /// public static bool Overlaps(ref ImRect self, ImRect r) { fixed (ImRect* pself = &self) { byte ret = OverlapsNative((ImRect*)pself, r); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddNative(ImRect* self, Vector2 p) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[789])(self, p); #else ((delegate* unmanaged[Cdecl])funcTable[789])((nint)self, p); #endif } /// /// To be documented. /// public static void Add(ImRectPtr self, Vector2 p) { AddNative(self, p); } /// /// To be documented. /// public static void Add(ref ImRect self, Vector2 p) { fixed (ImRect* pself = &self) { AddNative((ImRect*)pself, p); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddNative(ImRect* self, ImRect r) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[790])(self, r); #else ((delegate* unmanaged[Cdecl])funcTable[790])((nint)self, r); #endif } /// /// To be documented. /// public static void Add(ImRectPtr self, ImRect r) { AddNative(self, r); } /// /// To be documented. /// public static void Add(ref ImRect self, ImRect r) { fixed (ImRect* pself = &self) { AddNative((ImRect*)pself, r); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ExpandNative(ImRect* self, float amount) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[791])(self, amount); #else ((delegate* unmanaged[Cdecl])funcTable[791])((nint)self, amount); #endif } /// /// To be documented. /// public static void Expand(ImRectPtr self, float amount) { ExpandNative(self, amount); } /// /// To be documented. /// public static void Expand(ref ImRect self, float amount) { fixed (ImRect* pself = &self) { ExpandNative((ImRect*)pself, amount); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ExpandNative(ImRect* self, Vector2 amount) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[792])(self, amount); #else ((delegate* unmanaged[Cdecl])funcTable[792])((nint)self, amount); #endif } /// /// To be documented. /// public static void Expand(ImRectPtr self, Vector2 amount) { ExpandNative(self, amount); } /// /// To be documented. /// public static void Expand(ref ImRect self, Vector2 amount) { fixed (ImRect* pself = &self) { ExpandNative((ImRect*)pself, amount); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TranslateNative(ImRect* self, Vector2 d) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[793])(self, d); #else ((delegate* unmanaged[Cdecl])funcTable[793])((nint)self, d); #endif } /// /// To be documented. /// public static void Translate(ImRectPtr self, Vector2 d) { TranslateNative(self, d); } /// /// To be documented. /// public static void Translate(ref ImRect self, Vector2 d) { fixed (ImRect* pself = &self) { TranslateNative((ImRect*)pself, d); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TranslateXNative(ImRect* self, float dx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[794])(self, dx); #else ((delegate* unmanaged[Cdecl])funcTable[794])((nint)self, dx); #endif } /// /// To be documented. /// public static void TranslateX(ImRectPtr self, float dx) { TranslateXNative(self, dx); } /// /// To be documented. /// public static void TranslateX(ref ImRect self, float dx) { fixed (ImRect* pself = &self) { TranslateXNative((ImRect*)pself, dx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TranslateYNative(ImRect* self, float dy) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[795])(self, dy); #else ((delegate* unmanaged[Cdecl])funcTable[795])((nint)self, dy); #endif } /// /// To be documented. /// public static void TranslateY(ImRectPtr self, float dy) { TranslateYNative(self, dy); } /// /// To be documented. /// public static void TranslateY(ref ImRect self, float dy) { fixed (ImRect* pself = &self) { TranslateYNative((ImRect*)pself, dy); } } } }