Esempio n. 1
0
        private static void *__CopyValue(__Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(__Internal));

            *(__Internal *)ret = native;
            return(ret.ToPointer());
        }
Esempio n. 2
0
 private XmlTextWriter(__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }
Esempio n. 3
0
 internal static XmlTextWriter __CreateInstance(__Internal native, bool skipVTables = false)
 {
     return(new XmlTextWriter(native, skipVTables));
 }
Esempio n. 4
0
 internal static Foo __CreateInstance(__Internal native, bool skipVTables = false)
 {
     return(new Foo(native, skipVTables));
 }
Esempio n. 5
0
 internal IBarInternal(__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }
Esempio n. 6
0
 internal static IBar __CreateInstance(__Internal native, bool skipVTables = false)
 {
     return(new IBarInternal(native, skipVTables));
 }
Esempio n. 7
0
 private RuminoidImageT(__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }
Esempio n. 8
0
 internal static RuminoidImageT __CreateInstance(__Internal native, bool skipVTables = false)
 {
     return(new RuminoidImageT(native, skipVTables));
 }