diff --git a/src/CppParser/Bindings/CLI/AST.cpp b/src/CppParser/Bindings/CLI/AST.cpp index 2b83c439..c34688ef 100644 --- a/src/CppParser/Bindings/CLI/AST.cpp +++ b/src/CppParser/Bindings/CLI/AST.cpp @@ -2623,52 +2623,44 @@ void CppSharp::Parser::AST::NativeLibrary::Symbols::set(System::Collections::Gen ((::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->Symbols = _tmpvalue; } -CppSharp::Parser::AST::Library::Library(::CppSharp::CppParser::AST::Library* native) +CppSharp::Parser::AST::ASTContext::ASTContext(::CppSharp::CppParser::AST::ASTContext* native) { NativePtr = native; } -CppSharp::Parser::AST::Library::Library(System::IntPtr native) +CppSharp::Parser::AST::ASTContext::ASTContext(System::IntPtr native) { - auto __native = (::CppSharp::CppParser::AST::Library*)native.ToPointer(); + auto __native = (::CppSharp::CppParser::AST::ASTContext*)native.ToPointer(); NativePtr = __native; } -CppSharp::Parser::AST::TranslationUnit^ CppSharp::Parser::AST::Library::FindOrCreateModule(System::String^ File) +CppSharp::Parser::AST::TranslationUnit^ CppSharp::Parser::AST::ASTContext::FindOrCreateModule(System::String^ File) { auto arg0 = clix::marshalString(File); - auto __ret = ((::CppSharp::CppParser::AST::Library*)NativePtr)->FindOrCreateModule(arg0); + auto __ret = ((::CppSharp::CppParser::AST::ASTContext*)NativePtr)->FindOrCreateModule(arg0); if (__ret == nullptr) return nullptr; return gcnew CppSharp::Parser::AST::TranslationUnit((::CppSharp::CppParser::AST::TranslationUnit*)__ret); } -CppSharp::Parser::AST::NativeLibrary^ CppSharp::Parser::AST::Library::FindOrCreateLibrary(System::String^ File) +CppSharp::Parser::AST::ASTContext::ASTContext() { - auto arg0 = clix::marshalString(File); - auto __ret = ((::CppSharp::CppParser::AST::Library*)NativePtr)->FindOrCreateLibrary(arg0); - if (__ret == nullptr) return nullptr; - return gcnew CppSharp::Parser::AST::NativeLibrary((::CppSharp::CppParser::AST::NativeLibrary*)__ret); -} - -CppSharp::Parser::AST::Library::Library() -{ - NativePtr = new ::CppSharp::CppParser::AST::Library(); + NativePtr = new ::CppSharp::CppParser::AST::ASTContext(); } -System::IntPtr CppSharp::Parser::AST::Library::Instance::get() +System::IntPtr CppSharp::Parser::AST::ASTContext::Instance::get() { return System::IntPtr(NativePtr); } -void CppSharp::Parser::AST::Library::Instance::set(System::IntPtr object) +void CppSharp::Parser::AST::ASTContext::Instance::set(System::IntPtr object) { - NativePtr = (::CppSharp::CppParser::AST::Library*)object.ToPointer(); + NativePtr = (::CppSharp::CppParser::AST::ASTContext*)object.ToPointer(); } -System::Collections::Generic::List^ CppSharp::Parser::AST::Library::TranslationUnits::get() +System::Collections::Generic::List^ CppSharp::Parser::AST::ASTContext::TranslationUnits::get() { auto _tmpTranslationUnits = gcnew System::Collections::Generic::List(); - for(auto _element : ((::CppSharp::CppParser::AST::Library*)NativePtr)->TranslationUnits) + for(auto _element : ((::CppSharp::CppParser::AST::ASTContext*)NativePtr)->TranslationUnits) { auto _marshalElement = gcnew CppSharp::Parser::AST::TranslationUnit((::CppSharp::CppParser::AST::TranslationUnit*)_element); _tmpTranslationUnits->Add(_marshalElement); @@ -2676,7 +2668,7 @@ System::Collections::Generic::List^ Cpp return _tmpTranslationUnits; } -void CppSharp::Parser::AST::Library::TranslationUnits::set(System::Collections::Generic::List^ value) +void CppSharp::Parser::AST::ASTContext::TranslationUnits::set(System::Collections::Generic::List^ value) { auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::TranslationUnit*>(); for each(CppSharp::Parser::AST::TranslationUnit^ _element in value) @@ -2684,28 +2676,6 @@ void CppSharp::Parser::AST::Library::TranslationUnits::set(System::Collections:: auto _marshalElement = (::CppSharp::CppParser::AST::TranslationUnit*)_element->NativePtr; _tmpvalue.push_back(_marshalElement); } - ((::CppSharp::CppParser::AST::Library*)NativePtr)->TranslationUnits = _tmpvalue; -} - -System::Collections::Generic::List^ CppSharp::Parser::AST::Library::Libraries::get() -{ - auto _tmpLibraries = gcnew System::Collections::Generic::List(); - for(auto _element : ((::CppSharp::CppParser::AST::Library*)NativePtr)->Libraries) - { - auto _marshalElement = gcnew CppSharp::Parser::AST::NativeLibrary((::CppSharp::CppParser::AST::NativeLibrary*)_element); - _tmpLibraries->Add(_marshalElement); - } - return _tmpLibraries; -} - -void CppSharp::Parser::AST::Library::Libraries::set(System::Collections::Generic::List^ value) -{ - auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::NativeLibrary*>(); - for each(CppSharp::Parser::AST::NativeLibrary^ _element in value) - { - auto _marshalElement = (::CppSharp::CppParser::AST::NativeLibrary*)_element->NativePtr; - _tmpvalue.push_back(_marshalElement); - } - ((::CppSharp::CppParser::AST::Library*)NativePtr)->Libraries = _tmpvalue; + ((::CppSharp::CppParser::AST::ASTContext*)NativePtr)->TranslationUnits = _tmpvalue; } diff --git a/src/CppParser/Bindings/CLI/AST.h b/src/CppParser/Bindings/CLI/AST.h index fc563f5d..a34e6477 100644 --- a/src/CppParser/Bindings/CLI/AST.h +++ b/src/CppParser/Bindings/CLI/AST.h @@ -1,7 +1,7 @@ #pragma once #include "CppSharp.h" -#include +#include namespace CppSharp { @@ -64,7 +64,7 @@ namespace CppSharp ref class MacroExpansion; ref class TranslationUnit; ref class NativeLibrary; - ref class Library; + ref class ASTContext; } } } @@ -1504,35 +1504,28 @@ namespace CppSharp } }; - public ref class Library : ICppInstance + public ref class ASTContext : ICppInstance { public: - property ::CppSharp::CppParser::AST::Library* NativePtr; + property ::CppSharp::CppParser::AST::ASTContext* NativePtr; property System::IntPtr Instance { virtual System::IntPtr get(); virtual void set(System::IntPtr instance); } - Library(::CppSharp::CppParser::AST::Library* native); - Library(System::IntPtr native); - Library(); + ASTContext(::CppSharp::CppParser::AST::ASTContext* native); + ASTContext(System::IntPtr native); + ASTContext(); property System::Collections::Generic::List^ TranslationUnits { System::Collections::Generic::List^ get(); void set(System::Collections::Generic::List^); } - property System::Collections::Generic::List^ Libraries - { - System::Collections::Generic::List^ get(); - void set(System::Collections::Generic::List^); - } CppSharp::Parser::AST::TranslationUnit^ FindOrCreateModule(System::String^ File); - CppSharp::Parser::AST::NativeLibrary^ FindOrCreateLibrary(System::String^ File); - }; } } diff --git a/src/CppParser/Bindings/CLI/CppParser.cpp b/src/CppParser/Bindings/CLI/CppParser.cpp index c00f9408..92a4b704 100644 --- a/src/CppParser/Bindings/CLI/CppParser.cpp +++ b/src/CppParser/Bindings/CLI/CppParser.cpp @@ -128,14 +128,14 @@ void CppSharp::Parser::ParserOptions::FileName::set(System::String^ value) ((::CppSharp::CppParser::ParserOptions*)NativePtr)->FileName = clix::marshalString(value); } -CppSharp::Parser::AST::Library^ CppSharp::Parser::ParserOptions::Library::get() +CppSharp::Parser::AST::ASTContext^ CppSharp::Parser::ParserOptions::ASTContext::get() { - return gcnew CppSharp::Parser::AST::Library((::CppSharp::CppParser::AST::Library*)((::CppSharp::CppParser::ParserOptions*)NativePtr)->Library); + return gcnew CppSharp::Parser::AST::ASTContext((::CppSharp::CppParser::AST::ASTContext*)((::CppSharp::CppParser::ParserOptions*)NativePtr)->ASTContext); } -void CppSharp::Parser::ParserOptions::Library::set(CppSharp::Parser::AST::Library^ value) +void CppSharp::Parser::ParserOptions::ASTContext::set(CppSharp::Parser::AST::ASTContext^ value) { - ((::CppSharp::CppParser::ParserOptions*)NativePtr)->Library = (::CppSharp::CppParser::AST::Library*)value->NativePtr; + ((::CppSharp::CppParser::ParserOptions*)NativePtr)->ASTContext = (::CppSharp::CppParser::AST::ASTContext*)value->NativePtr; } int CppSharp::Parser::ParserOptions::ToolSetToUse::get() @@ -320,16 +320,6 @@ void CppSharp::Parser::ParserResult::Kind::set(CppSharp::Parser::ParserResultKin ((::CppSharp::CppParser::ParserResult*)NativePtr)->Kind = (::CppSharp::CppParser::ParserResultKind)value; } -CppSharp::Parser::AST::Library^ CppSharp::Parser::ParserResult::Library::get() -{ - return gcnew CppSharp::Parser::AST::Library((::CppSharp::CppParser::AST::Library*)((::CppSharp::CppParser::ParserResult*)NativePtr)->Library); -} - -void CppSharp::Parser::ParserResult::Library::set(CppSharp::Parser::AST::Library^ value) -{ - ((::CppSharp::CppParser::ParserResult*)NativePtr)->Library = (::CppSharp::CppParser::AST::Library*)value->NativePtr; -} - System::Collections::Generic::List^ CppSharp::Parser::ParserResult::Diagnostics::get() { auto _tmpDiagnostics = gcnew System::Collections::Generic::List(); @@ -353,6 +343,26 @@ void CppSharp::Parser::ParserResult::Diagnostics::set(System::Collections::Gener ((::CppSharp::CppParser::ParserResult*)NativePtr)->Diagnostics = _tmpvalue; } +CppSharp::Parser::AST::ASTContext^ CppSharp::Parser::ParserResult::ASTContext::get() +{ + return gcnew CppSharp::Parser::AST::ASTContext((::CppSharp::CppParser::AST::ASTContext*)((::CppSharp::CppParser::ParserResult*)NativePtr)->ASTContext); +} + +void CppSharp::Parser::ParserResult::ASTContext::set(CppSharp::Parser::AST::ASTContext^ value) +{ + ((::CppSharp::CppParser::ParserResult*)NativePtr)->ASTContext = (::CppSharp::CppParser::AST::ASTContext*)value->NativePtr; +} + +CppSharp::Parser::AST::NativeLibrary^ CppSharp::Parser::ParserResult::Library::get() +{ + return gcnew CppSharp::Parser::AST::NativeLibrary((::CppSharp::CppParser::AST::NativeLibrary*)((::CppSharp::CppParser::ParserResult*)NativePtr)->Library); +} + +void CppSharp::Parser::ParserResult::Library::set(CppSharp::Parser::AST::NativeLibrary^ value) +{ + ((::CppSharp::CppParser::ParserResult*)NativePtr)->Library = (::CppSharp::CppParser::AST::NativeLibrary*)value->NativePtr; +} + CppSharp::Parser::ClangParser::ClangParser(::CppSharp::CppParser::ClangParser* native) { NativePtr = native; diff --git a/src/CppParser/Bindings/CLI/CppParser.h b/src/CppParser/Bindings/CLI/CppParser.h index 40953d66..5e168d4a 100644 --- a/src/CppParser/Bindings/CLI/CppParser.h +++ b/src/CppParser/Bindings/CLI/CppParser.h @@ -1,7 +1,7 @@ #pragma once #include "CppSharp.h" -#include +#include namespace CppSharp { @@ -16,8 +16,9 @@ namespace CppSharp enum struct SourceLocationKind; namespace AST { - ref class Library; + ref class ASTContext; enum struct CppAbi; + ref class NativeLibrary; } } } @@ -91,10 +92,10 @@ namespace CppSharp System::String^ get(); void set(System::String^); } - property CppSharp::Parser::AST::Library^ Library + property CppSharp::Parser::AST::ASTContext^ ASTContext { - CppSharp::Parser::AST::Library^ get(); - void set(CppSharp::Parser::AST::Library^); + CppSharp::Parser::AST::ASTContext^ get(); + void set(CppSharp::Parser::AST::ASTContext^); } property int ToolSetToUse { @@ -195,16 +196,21 @@ namespace CppSharp CppSharp::Parser::ParserResultKind get(); void set(CppSharp::Parser::ParserResultKind); } - property CppSharp::Parser::AST::Library^ Library - { - CppSharp::Parser::AST::Library^ get(); - void set(CppSharp::Parser::AST::Library^); - } property System::Collections::Generic::List^ Diagnostics { System::Collections::Generic::List^ get(); void set(System::Collections::Generic::List^); } + property CppSharp::Parser::AST::ASTContext^ ASTContext + { + CppSharp::Parser::AST::ASTContext^ get(); + void set(CppSharp::Parser::AST::ASTContext^); + } + property CppSharp::Parser::AST::NativeLibrary^ Library + { + CppSharp::Parser::AST::NativeLibrary^ get(); + void set(CppSharp::Parser::AST::NativeLibrary^); + } }; public ref class ClangParser : ICppInstance diff --git a/src/CppParser/Bindings/CSharp/AST.cs b/src/CppParser/Bindings/CSharp/AST.cs index f468f788..02336468 100644 --- a/src/CppParser/Bindings/CSharp/AST.cs +++ b/src/CppParser/Bindings/CSharp/AST.cs @@ -155,13 +155,18 @@ namespace CppSharp public struct Internal { [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Type@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr Type0(global::System.IntPtr instance, global::System.IntPtr _0); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 0; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -217,13 +222,18 @@ namespace CppSharp public bool IsRestrict; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TypeQualifiers@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr TypeQualifiers0(global::System.IntPtr instance, global::System.IntPtr _0); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 3; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -321,13 +331,18 @@ namespace CppSharp public CppSharp.Parser.AST.TypeQualifiers.Internal Qualifiers; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0QualifiedType@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr QualifiedType0(global::System.IntPtr instance, global::System.IntPtr _0); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 8; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -411,11 +426,16 @@ namespace CppSharp public global::System.IntPtr Declaration; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TagType@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr TagType1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 4; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -482,7 +502,7 @@ namespace CppSharp public int Size; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ArrayType@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr ArrayType1(global::System.IntPtr instance, global::System.IntPtr _0); } @@ -495,6 +515,11 @@ namespace CppSharp Incomplete = 3 } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 16; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -593,16 +618,21 @@ namespace CppSharp public CppSharp.Parser.AST.CallingConvention CallingConvention; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0FunctionType@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr FunctionType1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0FunctionType@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr FunctionType2(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 24; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -699,7 +729,7 @@ namespace CppSharp public CppSharp.Parser.AST.PointerType.TypeModifier Modifier; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0PointerType@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr PointerType1(global::System.IntPtr instance, global::System.IntPtr _0); } @@ -712,6 +742,11 @@ namespace CppSharp RVReference = 3 } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 12; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -789,11 +824,16 @@ namespace CppSharp public CppSharp.Parser.AST.QualifiedType.Internal Pointee; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0MemberPointerType@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr MemberPointerType1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 8; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -856,11 +896,16 @@ namespace CppSharp public global::System.IntPtr Declaration; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TypedefType@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr TypedefType1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 4; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -927,11 +972,16 @@ namespace CppSharp public CppSharp.Parser.AST.QualifiedType.Internal Pointee; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0DecayedType@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr DecayedType1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 24; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -1039,7 +1089,7 @@ namespace CppSharp public int Integral; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TemplateArgument@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr TemplateArgument1(global::System.IntPtr instance, global::System.IntPtr _0); } @@ -1058,6 +1108,11 @@ namespace CppSharp public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 20; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -1177,16 +1232,21 @@ namespace CppSharp public global::System.IntPtr Desugared; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TemplateSpecializationType@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr TemplateSpecializationType1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TemplateSpecializationType@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr TemplateSpecializationType2(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 20; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -1279,18 +1339,23 @@ namespace CppSharp public Std.String Name; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TemplateParameter@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr TemplateParameter1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TemplateParameter@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr TemplateParameter2(global::System.IntPtr instance, global::System.IntPtr _0); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 24; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -1356,16 +1421,21 @@ namespace CppSharp public CppSharp.Parser.AST.TemplateParameter.Internal Parameter; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TemplateParameterType@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr TemplateParameterType0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TemplateParameterType@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr TemplateParameterType1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 24; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -1429,11 +1499,16 @@ namespace CppSharp public CppSharp.Parser.AST.QualifiedType.Internal Replacement; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TemplateParameterSubstitutionType@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr TemplateParameterSubstitutionType1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 8; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -1499,16 +1574,21 @@ namespace CppSharp public global::System.IntPtr Class; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0InjectedClassNameType@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr InjectedClassNameType0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0InjectedClassNameType@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr InjectedClassNameType1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 28; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -1585,11 +1665,16 @@ namespace CppSharp public new struct Internal { [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0DependentNameType@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr DependentNameType1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 0; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -1634,11 +1719,16 @@ namespace CppSharp public CppSharp.Parser.AST.PrimitiveType Type; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0BuiltinType@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr BuiltinType1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 4; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -1704,18 +1794,23 @@ namespace CppSharp public Std.String BriefText; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0RawComment@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr RawComment1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0RawComment@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr RawComment2(global::System.IntPtr instance, global::System.IntPtr _0); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 56; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -1817,13 +1912,18 @@ namespace CppSharp public global::System.IntPtr Declaration; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0VTableComponent@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr VTableComponent1(global::System.IntPtr instance, global::System.IntPtr _0); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 12; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -1919,18 +2019,23 @@ namespace CppSharp public Std.Vector Components; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0VTableLayout@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr VTableLayout1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0VTableLayout@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr VTableLayout2(global::System.IntPtr instance); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 12; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -2005,18 +2110,23 @@ namespace CppSharp public CppSharp.Parser.AST.VTableLayout.Internal Layout; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0VFTableInfo@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr VFTableInfo0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0VFTableInfo@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr VFTableInfo1(global::System.IntPtr instance, global::System.IntPtr _0); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 32; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -2151,18 +2261,23 @@ namespace CppSharp public int DataSize; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ClassLayout@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr ClassLayout1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ClassLayout@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr ClassLayout2(global::System.IntPtr instance); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 48; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -2366,18 +2481,23 @@ namespace CppSharp public void* OriginalPtr; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="??0Declaration@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] - public static extern global::System.IntPtr Declaration1(global::System.IntPtr instance, global::System.IntPtr _0); + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0Declaration@AST@CppParser@CppSharp@@QAE@XZ")] + public static extern global::System.IntPtr Declaration0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="??0Declaration@AST@CppParser@CppSharp@@QAE@XZ")] - public static extern global::System.IntPtr Declaration2(global::System.IntPtr instance); + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0Declaration@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] + public static extern global::System.IntPtr Declaration2(global::System.IntPtr instance, global::System.IntPtr _0); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 88; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -2404,7 +2524,7 @@ namespace CppSharp public Declaration() { __Instance = Marshal.AllocHGlobal(88); - Internal.Declaration2(__Instance); + Internal.Declaration0(__Instance); } public void Dispose() @@ -2614,66 +2734,71 @@ namespace CppSharp public Std.Vector Variables; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0DeclarationContext@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr DeclarationContext1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0DeclarationContext@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr DeclarationContext2(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?FindAnonymous@DeclarationContext@AST@CppParser@CppSharp@@QAEPAUDeclaration@234@_K@Z")] public static extern global::System.IntPtr FindAnonymous0(global::System.IntPtr instance, ulong key); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?FindNamespace@DeclarationContext@AST@CppParser@CppSharp@@QAEPAUNamespace@234@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z")] public static extern global::System.IntPtr FindNamespace0(global::System.IntPtr instance, Std.String Name); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?FindNamespace@DeclarationContext@AST@CppParser@CppSharp@@QAEPAUNamespace@234@ABV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Z")] public static extern global::System.IntPtr FindNamespace1(global::System.IntPtr instance, Std.Vector _0); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?FindCreateNamespace@DeclarationContext@AST@CppParser@CppSharp@@QAEPAUNamespace@234@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z")] public static extern global::System.IntPtr FindCreateNamespace0(global::System.IntPtr instance, Std.String Name); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?CreateClass@DeclarationContext@AST@CppParser@CppSharp@@QAEPAUClass@234@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z")] public static extern global::System.IntPtr CreateClass0(global::System.IntPtr instance, Std.String Name, bool IsComplete); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?FindClass@DeclarationContext@AST@CppParser@CppSharp@@QAEPAUClass@234@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z")] public static extern global::System.IntPtr FindClass0(global::System.IntPtr instance, Std.String Name); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?FindClass@DeclarationContext@AST@CppParser@CppSharp@@QAEPAUClass@234@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N1@Z")] public static extern global::System.IntPtr FindClass1(global::System.IntPtr instance, Std.String Name, bool IsComplete, bool Create); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?FindEnum@DeclarationContext@AST@CppParser@CppSharp@@QAEPAUEnumeration@234@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z")] public static extern global::System.IntPtr FindEnum0(global::System.IntPtr instance, Std.String Name, bool Create); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?FindFunction@DeclarationContext@AST@CppParser@CppSharp@@QAEPAUFunction@234@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z")] public static extern global::System.IntPtr FindFunction0(global::System.IntPtr instance, Std.String Name, bool Create); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?FindTypedef@DeclarationContext@AST@CppParser@CppSharp@@QAEPAUTypedefDecl@234@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z")] public static extern global::System.IntPtr FindTypedef0(global::System.IntPtr instance, Std.String Name, bool Create); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 180; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -2904,16 +3029,21 @@ namespace CppSharp public CppSharp.Parser.AST.QualifiedType.Internal QualifiedType; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TypedefDecl@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr TypedefDecl0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TypedefDecl@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr TypedefDecl1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 96; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -2983,16 +3113,21 @@ namespace CppSharp public bool HasDefaultValue; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Parameter@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr Parameter0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Parameter@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr Parameter1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 100; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -3116,16 +3251,21 @@ namespace CppSharp public Std.Vector Parameters; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Function@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr Function0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Function@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr Function2(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 172; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -3366,16 +3506,21 @@ namespace CppSharp public bool IsMoveConstructor; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Method@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr Method0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Method@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr Method1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 192; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -3581,12 +3726,12 @@ namespace CppSharp public Std.Vector Items; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Enumeration@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr Enumeration1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Enumeration@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr Enumeration2(global::System.IntPtr instance, global::System.IntPtr _0); } @@ -3617,16 +3762,21 @@ namespace CppSharp public ulong Value; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Item@Enumeration@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr Item1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Item@Enumeration@AST@CppParser@CppSharp@@QAE@ABU01234@@Z")] public static extern global::System.IntPtr Item2(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 168; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -3723,6 +3873,11 @@ namespace CppSharp } } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 112; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -3833,16 +3988,21 @@ namespace CppSharp public CppSharp.Parser.AST.QualifiedType.Internal QualifiedType; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Variable@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr Variable1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Variable@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr Variable2(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 120; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -3927,13 +4087,18 @@ namespace CppSharp public global::System.IntPtr Type; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0BaseClassSpecifier@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr BaseClassSpecifier1(global::System.IntPtr instance, global::System.IntPtr _0); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 12; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -4038,16 +4203,21 @@ namespace CppSharp public global::System.IntPtr Class; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Field@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr Field0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Field@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr Field1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 108; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -4154,16 +4324,21 @@ namespace CppSharp public new struct Internal { [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0AccessSpecifierDecl@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr AccessSpecifierDecl0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0AccessSpecifierDecl@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr AccessSpecifierDecl1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 88; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -4242,16 +4417,21 @@ namespace CppSharp public CppSharp.Parser.AST.ClassLayout.Internal Layout; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Class@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr Class1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Class@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr Class2(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 284; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -4483,16 +4663,21 @@ namespace CppSharp public Std.Vector Parameters; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Template@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr Template1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Template@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr Template2(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 104; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -4566,16 +4751,21 @@ namespace CppSharp public new struct Internal { [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ClassTemplate@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr ClassTemplate0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ClassTemplate@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr ClassTemplate1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 104; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -4618,16 +4808,21 @@ namespace CppSharp public new struct Internal { [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ClassTemplateSpecialization@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr ClassTemplateSpecialization0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ClassTemplateSpecialization@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr ClassTemplateSpecialization1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 88; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -4670,16 +4865,21 @@ namespace CppSharp public new struct Internal { [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ClassTemplatePartialSpecialization@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr ClassTemplatePartialSpecialization0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ClassTemplatePartialSpecialization@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr ClassTemplatePartialSpecialization1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 88; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -4722,16 +4922,21 @@ namespace CppSharp public new struct Internal { [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0FunctionTemplate@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr FunctionTemplate0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0FunctionTemplate@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr FunctionTemplate1(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 104; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -4774,16 +4979,21 @@ namespace CppSharp public new struct Internal { [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Namespace@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr Namespace1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0Namespace@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr Namespace2(global::System.IntPtr instance); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 180; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -4829,16 +5039,21 @@ namespace CppSharp public CppSharp.Parser.AST.MacroLocation Location; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0PreprocessedEntity@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr PreprocessedEntity0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0PreprocessedEntity@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr PreprocessedEntity2(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 92; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -4899,16 +5114,21 @@ namespace CppSharp public Std.String Expression; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0MacroDefinition@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr MacroDefinition1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0MacroDefinition@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr MacroDefinition2(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 116; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -4972,16 +5192,21 @@ namespace CppSharp public global::System.IntPtr Definition; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0MacroExpansion@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr MacroExpansion1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0MacroExpansion@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr MacroExpansion2(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 120; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -5067,16 +5292,21 @@ namespace CppSharp public Std.Vector Macros; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TranslationUnit@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr TranslationUnit1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0TranslationUnit@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr TranslationUnit2(global::System.IntPtr instance, global::System.IntPtr _0); } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 232; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -5185,18 +5415,23 @@ namespace CppSharp public Std.Vector Symbols; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0NativeLibrary@AST@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr NativeLibrary1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0NativeLibrary@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] public static extern global::System.IntPtr NativeLibrary2(global::System.IntPtr instance, global::System.IntPtr _0); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 36; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -5268,40 +5503,37 @@ namespace CppSharp } } - public unsafe partial class Library : IDisposable, CppSharp.Runtime.ICppMarshal + public unsafe partial class ASTContext : IDisposable, CppSharp.Runtime.ICppMarshal { - [StructLayout(LayoutKind.Explicit, Size = 24)] + [StructLayout(LayoutKind.Explicit, Size = 12)] public struct Internal { [FieldOffset(0)] public Std.Vector TranslationUnits; - [FieldOffset(12)] - public Std.Vector Libraries; - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="??0Library@AST@CppParser@CppSharp@@QAE@XZ")] - public static extern global::System.IntPtr Library1(global::System.IntPtr instance); + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0ASTContext@AST@CppParser@CppSharp@@QAE@XZ")] + public static extern global::System.IntPtr ASTContext1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="??0Library@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] - public static extern global::System.IntPtr Library2(global::System.IntPtr instance, global::System.IntPtr _0); + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0ASTContext@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")] + public static extern global::System.IntPtr ASTContext2(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="?FindOrCreateModule@Library@AST@CppParser@CppSharp@@QAEPAUTranslationUnit@234@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z")] + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="?FindOrCreateModule@ASTContext@AST@CppParser@CppSharp@@QAEPAUTranslationUnit@234@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z")] public static extern global::System.IntPtr FindOrCreateModule0(global::System.IntPtr instance, Std.String File); - - [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, - EntryPoint="?FindOrCreateLibrary@Library@AST@CppParser@CppSharp@@QAEPAUNativeLibrary@234@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z")] - public static extern global::System.IntPtr FindOrCreateLibrary0(global::System.IntPtr instance, Std.String File); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 12; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -5310,25 +5542,25 @@ namespace CppSharp { } - internal Library(Library.Internal* native) + internal ASTContext(ASTContext.Internal* native) : this(new global::System.IntPtr(native)) { } - internal Library(Library.Internal native) + internal ASTContext(ASTContext.Internal native) : this(&native) { } - internal Library(global::System.IntPtr native) + internal ASTContext(global::System.IntPtr native) { __Instance = native; } - public Library() + public ASTContext() { - __Instance = Marshal.AllocHGlobal(24); - Internal.Library1(__Instance); + __Instance = Marshal.AllocHGlobal(12); + Internal.ASTContext1(__Instance); } public void Dispose() @@ -5350,14 +5582,6 @@ namespace CppSharp return new CppSharp.Parser.AST.TranslationUnit(__ret); } - public CppSharp.Parser.AST.NativeLibrary FindOrCreateLibrary(Std.String File) - { - var arg0 = new Std.String(); - var __ret = Internal.FindOrCreateLibrary0(__Instance, arg0); - if (__ret == global::System.IntPtr.Zero) return null; - return new CppSharp.Parser.AST.NativeLibrary(__ret); - } - public Std.Vector TranslationUnits { get @@ -5372,21 +5596,6 @@ namespace CppSharp __ptr->TranslationUnits = value.Internal; } } - - public Std.Vector Libraries - { - get - { - var __ptr = (Internal*)__Instance.ToPointer(); - return new Std.Vector(__ptr->Libraries); - } - - set - { - var __ptr = (Internal*)__Instance.ToPointer(); - __ptr->Libraries = value.Internal; - } - } } } } diff --git a/src/CppParser/Bindings/CSharp/CppParser.cs b/src/CppParser/Bindings/CSharp/CppParser.cs index 3e5903ac..777b5e11 100644 --- a/src/CppParser/Bindings/CSharp/CppParser.cs +++ b/src/CppParser/Bindings/CSharp/CppParser.cs @@ -37,26 +37,26 @@ namespace CppSharp public unsafe partial class ParserOptions : IDisposable, CppSharp.Runtime.ICppMarshal { - [StructLayout(LayoutKind.Explicit, Size = 116)] + [StructLayout(LayoutKind.Explicit, Size = 112)] public struct Internal { [FieldOffset(0)] + public Std.String FileName; + + [FieldOffset(24)] public Std.Vector IncludeDirs; - [FieldOffset(12)] + [FieldOffset(36)] public Std.Vector SystemIncludeDirs; - [FieldOffset(24)] + [FieldOffset(48)] public Std.Vector Defines; - [FieldOffset(36)] + [FieldOffset(60)] public Std.Vector LibraryDirs; - [FieldOffset(48)] - public Std.String FileName; - [FieldOffset(72)] - public global::System.IntPtr Library; + public global::System.IntPtr ASTContext; [FieldOffset(76)] public int ToolSetToUse; @@ -65,33 +65,38 @@ namespace CppSharp public Std.String TargetTriple; [FieldOffset(104)] + public CppSharp.Parser.AST.CppAbi Abi; + + [FieldOffset(108)] public bool NoStandardIncludes; - [FieldOffset(105)] + [FieldOffset(109)] public bool NoBuiltinIncludes; - [FieldOffset(106)] + [FieldOffset(110)] public bool MicrosoftMode; - [FieldOffset(108)] - public CppSharp.Parser.AST.CppAbi Abi; - - [FieldOffset(112)] + [FieldOffset(111)] public bool Verbose; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ParserOptions@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr ParserOptions0(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ParserOptions@CppParser@CppSharp@@QAE@ABU012@@Z")] public static extern global::System.IntPtr ParserOptions2(global::System.IntPtr instance, global::System.IntPtr _0); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 112; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -117,7 +122,7 @@ namespace CppSharp public ParserOptions() { - __Instance = Marshal.AllocHGlobal(116); + __Instance = Marshal.AllocHGlobal(112); Internal.ParserOptions0(__Instance); } @@ -132,6 +137,21 @@ namespace CppSharp Marshal.FreeHGlobal(__Instance); } + public Std.String FileName + { + get + { + var __ptr = (Internal*)__Instance.ToPointer(); + return __ptr->FileName; + } + + set + { + var __ptr = (Internal*)__Instance.ToPointer(); + __ptr->FileName = new Std.String(); + } + } + public Std.Vector IncludeDirs { get @@ -192,64 +212,64 @@ namespace CppSharp } } - public Std.String FileName + public CppSharp.Parser.AST.ASTContext ASTContext { get { var __ptr = (Internal*)__Instance.ToPointer(); - return __ptr->FileName; + var __copy = new global::System.IntPtr(&__ptr->ASTContext); + return new CppSharp.Parser.AST.ASTContext(__copy); } set { var __ptr = (Internal*)__Instance.ToPointer(); - __ptr->FileName = new Std.String(); + __ptr->ASTContext = value.__Instance; } } - public CppSharp.Parser.AST.Library Library + public int ToolSetToUse { get { var __ptr = (Internal*)__Instance.ToPointer(); - var __copy = new global::System.IntPtr(&__ptr->Library); - return new CppSharp.Parser.AST.Library(__copy); + return __ptr->ToolSetToUse; } set { var __ptr = (Internal*)__Instance.ToPointer(); - __ptr->Library = value.__Instance; + __ptr->ToolSetToUse = value; } } - public int ToolSetToUse + public Std.String TargetTriple { get { var __ptr = (Internal*)__Instance.ToPointer(); - return __ptr->ToolSetToUse; + return __ptr->TargetTriple; } set { var __ptr = (Internal*)__Instance.ToPointer(); - __ptr->ToolSetToUse = value; + __ptr->TargetTriple = new Std.String(); } } - public Std.String TargetTriple + public CppSharp.Parser.AST.CppAbi Abi { get { var __ptr = (Internal*)__Instance.ToPointer(); - return __ptr->TargetTriple; + return __ptr->Abi; } set { var __ptr = (Internal*)__Instance.ToPointer(); - __ptr->TargetTriple = new Std.String(); + __ptr->Abi = value; } } @@ -298,21 +318,6 @@ namespace CppSharp } } - public CppSharp.Parser.AST.CppAbi Abi - { - get - { - var __ptr = (Internal*)__Instance.ToPointer(); - return __ptr->Abi; - } - - set - { - var __ptr = (Internal*)__Instance.ToPointer(); - __ptr->Abi = value; - } - } - public bool Verbose { get @@ -350,18 +355,23 @@ namespace CppSharp public int ColumnNumber; [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ParserDiagnostic@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr ParserDiagnostic1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ParserDiagnostic@CppParser@CppSharp@@QAE@ABU012@@Z")] public static extern global::System.IntPtr ParserDiagnostic2(global::System.IntPtr instance, global::System.IntPtr _0); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 60; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -480,31 +490,39 @@ namespace CppSharp public unsafe partial class ParserResult : IDisposable, CppSharp.Runtime.ICppMarshal { - [StructLayout(LayoutKind.Explicit, Size = 20)] + [StructLayout(LayoutKind.Explicit, Size = 24)] public struct Internal { [FieldOffset(0)] public CppSharp.Parser.ParserResultKind Kind; [FieldOffset(4)] - public global::System.IntPtr Library; - - [FieldOffset(8)] public Std.Vector Diagnostics; + [FieldOffset(16)] + public global::System.IntPtr ASTContext; + + [FieldOffset(20)] + public global::System.IntPtr Library; + [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ParserResult@CppParser@CppSharp@@QAE@XZ")] public static extern global::System.IntPtr ParserResult1(global::System.IntPtr instance); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ParserResult@CppParser@CppSharp@@QAE@ABU012@@Z")] public static extern global::System.IntPtr ParserResult2(global::System.IntPtr instance, global::System.IntPtr _0); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 24; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { } @@ -530,7 +548,7 @@ namespace CppSharp public ParserResult() { - __Instance = Marshal.AllocHGlobal(20); + __Instance = Marshal.AllocHGlobal(24); Internal.ParserResult1(__Instance); } @@ -560,34 +578,50 @@ namespace CppSharp } } - public CppSharp.Parser.AST.Library Library + public Std.Vector Diagnostics { get { var __ptr = (Internal*)__Instance.ToPointer(); - var __copy = new global::System.IntPtr(&__ptr->Library); - return new CppSharp.Parser.AST.Library(__copy); + return new Std.Vector(__ptr->Diagnostics); } set { var __ptr = (Internal*)__Instance.ToPointer(); - __ptr->Library = value.__Instance; + __ptr->Diagnostics = value.Internal; } } - public Std.Vector Diagnostics + public CppSharp.Parser.AST.ASTContext ASTContext { get { var __ptr = (Internal*)__Instance.ToPointer(); - return new Std.Vector(__ptr->Diagnostics); + var __copy = new global::System.IntPtr(&__ptr->ASTContext); + return new CppSharp.Parser.AST.ASTContext(__copy); } set { var __ptr = (Internal*)__Instance.ToPointer(); - __ptr->Diagnostics = value.Internal; + __ptr->ASTContext = value.__Instance; + } + } + + public CppSharp.Parser.AST.NativeLibrary Library + { + get + { + var __ptr = (Internal*)__Instance.ToPointer(); + var __copy = new global::System.IntPtr(&__ptr->Library); + return new CppSharp.Parser.AST.NativeLibrary(__copy); + } + + set + { + var __ptr = (Internal*)__Instance.ToPointer(); + __ptr->Library = value.__Instance; } } } @@ -598,23 +632,28 @@ namespace CppSharp public struct Internal { [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0ClangParser@CppParser@CppSharp@@QAE@ABV012@@Z")] public static extern global::System.IntPtr ClangParser1(global::System.IntPtr instance, global::System.IntPtr _0); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="?ParseHeader@ClangParser@CppParser@CppSharp@@SAPAUParserResult@23@PAUParserOptions@23@@Z")] public static extern global::System.IntPtr ParseHeader0(global::System.IntPtr Opts); [SuppressUnmanagedCodeSecurity] - [DllImport("CppSharp", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl, + [DllImport("CppSharp.CppParser.dll", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="?ParseLibrary@ClangParser@CppParser@CppSharp@@SAPAUParserResult@23@PAUParserOptions@23@@Z")] public static extern global::System.IntPtr ParseLibrary0(global::System.IntPtr Opts); } public global::System.IntPtr __Instance { get; protected set; } + int CppSharp.Runtime.ICppMarshal.NativeDataSize + { + get { return 0; } + } + void CppSharp.Runtime.ICppMarshal.MarshalManagedToNative(global::System.IntPtr instance) { }