예제 #1
0
파일: Target.cs 프로젝트: trarck/CppSharp
            private static void *__CopyValue(ParserTargetInfo.Internal native)
            {
                var ret = Marshal.AllocHGlobal(164);

                CppSharp.Parser.ParserTargetInfo.Internal.cctor_1(ret, new global::System.IntPtr(&native));
                return(ret.ToPointer());
            }
예제 #2
0
            private static ParserTargetInfo.Internal *__CopyValue(ParserTargetInfo.Internal native)
            {
                var ret = Marshal.AllocHGlobal(176);

                CppSharp.Parser.ParserTargetInfo.Internal.cctor_2(ret, new global::System.IntPtr(&native));
                return((ParserTargetInfo.Internal *)ret);
            }
예제 #3
0
 private ParserTargetInfo(ParserTargetInfo.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance = true;
 }
예제 #4
0
 public static ParserTargetInfo __CreateInstance(ParserTargetInfo.Internal native)
 {
     return(new ParserTargetInfo(native));
 }
예제 #5
0
파일: Target.cs 프로젝트: trarck/CppSharp
 private ParserTargetInfo(ParserTargetInfo.Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }
예제 #6
0
파일: Target.cs 프로젝트: trarck/CppSharp
 public static ParserTargetInfo __CreateInstance(ParserTargetInfo.Internal native, bool skipVTables = false)
 {
     return(new ParserTargetInfo(native, skipVTables));
 }
예제 #7
0
 internal ParserTargetInfo(ParserTargetInfo.Internal native)
     : this(&native)
 {
 }
예제 #8
0
 private ParserTargetInfo(ParserTargetInfo.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }