Tools and libraries to glue C/C++ APIs to high-level languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

84 lines
3.1 KiB

//----------------------------------------------------------------------------
// This is autogenerated code by CppSharp.
// Do not edit this file or all your changes will be lost after re-generation.
//----------------------------------------------------------------------------
using System;
using System.Runtime.InteropServices;
using System.Security;
namespace CppSharp
{
namespace Parser
{
public unsafe partial struct SourceLocation
{
[StructLayout(LayoutKind.Explicit, Size = 4)]
public partial struct Internal
{
[FieldOffset(0)]
public uint ID;
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser14SourceLocationC2Ev")]
internal static extern void ctor_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser14SourceLocationC2Ej")]
internal static extern void ctor_1(global::System.IntPtr instance, uint ID);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser14SourceLocationC2ERKS1_")]
internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0);
}
private SourceLocation.Internal __instance;
public SourceLocation.Internal __Instance { get { return __instance; } }
public static SourceLocation __CreateInstance(global::System.IntPtr native)
{
return new SourceLocation((SourceLocation.Internal*) native);
}
public static SourceLocation __CreateInstance(SourceLocation.Internal native)
{
return new SourceLocation(native);
}
private SourceLocation(SourceLocation.Internal native)
: this()
{
__instance = native;
}
private SourceLocation(SourceLocation.Internal* native, bool isInternalImpl = false) : this()
{
__instance = *native;
}
public SourceLocation(uint ID)
: this()
{
fixed (Internal* __instancePtr = &__instance)
{
Internal.ctor_1(new global::System.IntPtr(__instancePtr), ID);
}
}
public uint ID
{
get
{
return __instance.ID;
}
set
{
__instance.ID = value;
}
}
}
}
}