Beispiel #1
0
 private static void* __CopyValue(_Rep.Internal native)
 {
     var ret = Marshal.AllocHGlobal(24);
     *(_Rep.Internal*) ret = native;
     return ret.ToPointer();
 }
Beispiel #2
0
 private _Rep(_Rep.Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
Beispiel #3
0
 public static _Rep __CreateInstance(_Rep.Internal native, bool skipVTables = false)
 {
     return new _Rep(native, skipVTables);
 }