init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
//
|
||||
// DO NOT MODIFY! THIS IS AUTOGENERATED FILE!
|
||||
//
|
||||
namespace Cef3.Interop
|
||||
{
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security;
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = libcef.ALIGN)]
|
||||
[SuppressMessage("Microsoft.Design", "CA1049:TypesThatOwnNativeResourcesShouldBeDisposable")]
|
||||
internal unsafe struct cef_task_t
|
||||
{
|
||||
internal cef_base_t _base;
|
||||
internal IntPtr _execute;
|
||||
|
||||
[UnmanagedFunctionPointer(libcef.CEF_CALLBACK)]
|
||||
#if !DEBUG
|
||||
[SuppressUnmanagedCodeSecurity]
|
||||
#endif
|
||||
internal delegate void add_ref_delegate(cef_task_t* self);
|
||||
|
||||
[UnmanagedFunctionPointer(libcef.CEF_CALLBACK)]
|
||||
#if !DEBUG
|
||||
[SuppressUnmanagedCodeSecurity]
|
||||
#endif
|
||||
internal delegate int release_delegate(cef_task_t* self);
|
||||
|
||||
[UnmanagedFunctionPointer(libcef.CEF_CALLBACK)]
|
||||
#if !DEBUG
|
||||
[SuppressUnmanagedCodeSecurity]
|
||||
#endif
|
||||
internal delegate int has_one_ref_delegate(cef_task_t* self);
|
||||
|
||||
[UnmanagedFunctionPointer(libcef.CEF_CALLBACK)]
|
||||
#if !DEBUG
|
||||
[SuppressUnmanagedCodeSecurity]
|
||||
#endif
|
||||
internal delegate void execute_delegate(cef_task_t* self);
|
||||
|
||||
private static int _sizeof;
|
||||
|
||||
static cef_task_t()
|
||||
{
|
||||
_sizeof = Marshal.SizeOf(typeof(cef_task_t));
|
||||
}
|
||||
|
||||
internal static cef_task_t* Alloc()
|
||||
{
|
||||
var ptr = (cef_task_t*)Marshal.AllocHGlobal(_sizeof);
|
||||
*ptr = new cef_task_t();
|
||||
ptr->_base._size = (UIntPtr)_sizeof;
|
||||
return ptr;
|
||||
}
|
||||
|
||||
internal static void Free(cef_task_t* ptr)
|
||||
{
|
||||
Marshal.FreeHGlobal((IntPtr)ptr);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user