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