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