本文整理匯總了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)
{
}