本文整理汇总了C#中ClangParser类的典型用法代码示例。如果您正苦于以下问题:C# ClangParser类的具体用法?C# ClangParser怎么用?C# ClangParser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ClangParser类属于命名空间,在下文中一共展示了ClangParser类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: __CopyValue
private static void* __CopyValue(ClangParser.__Internal native)
{
var ret = Marshal.AllocHGlobal(0);
*(ClangParser.__Internal*) ret = native;
return ret.ToPointer();
}
示例2: ClangParser
private ClangParser(ClangParser.__Internal native, bool skipVTables = false)
: this(__CopyValue(native), skipVTables)
{
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
示例3: ClangParser
protected ClangParser(ClangParser.Internal* native, bool isInternalImpl = false)
{
__Instance = new global::System.IntPtr(native);
}
示例4: __CreateInstance
public static ClangParser __CreateInstance(ClangParser.__Internal native, bool skipVTables = false)
{
return new ClangParser(native, skipVTables);
}
示例5: __CopyValue
private static ClangParser.Internal* __CopyValue(ClangParser.Internal native)
{
var ret = (ClangParser.Internal*) Marshal.AllocHGlobal(0);
*ret = native;
return ret;
}
示例6: ClangParser
protected ClangParser(ClangParser.Internal* native, bool skipVTables = false)
{
if (native == null)
return;
__Instance = new global::System.IntPtr(native);
}
示例7: __CreateInstance
public static ClangParser __CreateInstance(ClangParser.Internal native)
{
return new ClangParser(native);
}
示例8: ClangParser
private ClangParser(ClangParser.Internal native)
: this(__CopyValue(native))
{
__ownsNativeInstance = true;
}
示例9: ClangParser
internal ClangParser(ClangParser.Internal native)
: this(__CopyValue(native))
{
}
示例10: __CopyValue
private static global::System.IntPtr __CopyValue(ClangParser.Internal native)
{
global::System.IntPtr ret = Marshal.AllocHGlobal(1);
*(ClangParser.Internal*) ret = native;
return ret;
}
示例11: ClangParser
internal ClangParser(ClangParser.Internal native)
: this(&native)
{
}