Exemplo n.º 1
0
        private static void *_CopyValue(Foundation.ATErrorUnsafe._Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(Foundation.ATErrorUnsafe._Internal));

            *(Foundation.ATErrorUnsafe._Internal *)ret = native;
            return(ret.ToPointer());
        }
Exemplo n.º 2
0
 private ATErrorUnsafe(Foundation.ATErrorUnsafe._Internal native, bool skipVTables = false)
     : this(_CopyValue(native), skipVTables)
 {
     _ownsNativeInstance           = true;
     NativeToManagedMap[_Instance] = this;
 }
Exemplo n.º 3
0
 internal static Foundation.ATErrorUnsafe _CreateInstance(Foundation.ATErrorUnsafe._Internal native, bool skipVTables = false)
 {
     return(new Foundation.ATErrorUnsafe(native, skipVTables));
 }