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