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