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