private static void *_CopyValue(Foundation.ATStringUnsafe._Internal native) { var ret = Marshal.AllocHGlobal(sizeof(Foundation.ATStringUnsafe._Internal)); *(Foundation.ATStringUnsafe._Internal *)ret = native; return(ret.ToPointer()); }
private ATStringUnsafe(Foundation.ATStringUnsafe._Internal native, bool skipVTables = false) : this(_CopyValue(native), skipVTables) { _ownsNativeInstance = true; NativeToManagedMap[_Instance] = this; }
internal static Foundation.ATStringUnsafe _CreateInstance(Foundation.ATStringUnsafe._Internal native, bool skipVTables = false) { return(new Foundation.ATStringUnsafe(native, skipVTables)); }