Created
June 5, 2012 22:54
-
-
Save Clancey/2878653 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Auto-generated from generator.cs, do not edit | |
// | |
// We keep references to objects, so warning 414 is expected | |
#pragma warning disable 414 | |
using System; | |
using System.Drawing; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
using MonoTouch; | |
using MonoTouch.CoreFoundation; | |
using MonoTouch.CoreMedia; | |
using MonoTouch.CoreMotion; | |
using MonoTouch.Foundation; | |
using MonoTouch.ObjCRuntime; | |
using MonoTouch.CoreAnimation; | |
using MonoTouch.CoreLocation; | |
using MonoTouch.MapKit; | |
using MonoTouch.UIKit; | |
using MonoTouch.CoreGraphics; | |
using MonoTouch.NewsstandKit; | |
using MonoTouch.GLKit; | |
using OpenTK; | |
namespace Parse { | |
[Register("PFFile", true)] | |
public unsafe partial class PFFile : NSObject { | |
static IntPtr selName = Selector.GetHandle ("name"); | |
static IntPtr selUrl = Selector.GetHandle ("url"); | |
static IntPtr selIsDirty = Selector.GetHandle ("isDirty"); | |
static IntPtr selIsDataAvailable = Selector.GetHandle ("isDataAvailable"); | |
static IntPtr selFileWithData_ = Selector.GetHandle ("fileWithData:"); | |
static IntPtr selFileWithNameData_ = Selector.GetHandle ("fileWithName:data:"); | |
static IntPtr selFileWithNameContentsAtPath_ = Selector.GetHandle ("fileWithName:contentsAtPath:"); | |
static IntPtr selSave = Selector.GetHandle ("save"); | |
static IntPtr selSave_ = Selector.GetHandle ("save:"); | |
static IntPtr selSaveInBackground = Selector.GetHandle ("saveInBackground"); | |
static IntPtr selSaveInBackgroundWithBlock_ = Selector.GetHandle ("saveInBackgroundWithBlock:"); | |
static IntPtr selSaveInBackgroundWithBlockProgressBlock_ = Selector.GetHandle ("saveInBackgroundWithBlock:progressBlock:"); | |
static IntPtr selSaveInBackgroundWithTargetSelector_ = Selector.GetHandle ("saveInBackgroundWithTarget:selector:"); | |
static IntPtr selGetData = Selector.GetHandle ("getData"); | |
static IntPtr selGetDataStream = Selector.GetHandle ("getDataStream"); | |
static IntPtr selGetData_ = Selector.GetHandle ("getData:"); | |
static IntPtr selGetDataStream_ = Selector.GetHandle ("getDataStream:"); | |
static IntPtr selGetDataInBackgroundWithBlock_ = Selector.GetHandle ("getDataInBackgroundWithBlock:"); | |
static IntPtr selGetDataStreamInBackgroundWithBlock_ = Selector.GetHandle ("getDataStreamInBackgroundWithBlock:"); | |
static IntPtr selGetDataInBackgroundWithBlockProgressBlock_ = Selector.GetHandle ("getDataInBackgroundWithBlock:progressBlock:"); | |
static IntPtr selGetDataStreamInBackgroundWithBlockProgressBlock_ = Selector.GetHandle ("getDataStreamInBackgroundWithBlock:progressBlock:"); | |
static IntPtr selGetDataInBackgroundWithTargetSelector_ = Selector.GetHandle ("getDataInBackgroundWithTarget:selector:"); | |
static IntPtr selCancel = Selector.GetHandle ("cancel"); | |
static IntPtr class_ptr = Class.GetHandle ("PFFile"); | |
public override IntPtr ClassHandle { get { return class_ptr; } } | |
[CompilerGenerated] | |
[Export ("init")] | |
public PFFile () : base (NSObjectFlag.Empty) | |
{ | |
IsDirectBinding = GetType ().Assembly == global::Parse.Messaging.this_assembly; | |
if (IsDirectBinding) { | |
Handle = MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.Init); | |
} else { | |
Handle = MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.Init); | |
} | |
} | |
[CompilerGenerated] | |
[Export ("initWithCoder:")] | |
public PFFile (NSCoder coder) : base (NSObjectFlag.Empty) | |
{ | |
IsDirectBinding = GetType ().Assembly == global::Parse.Messaging.this_assembly; | |
if (IsDirectBinding) { | |
Handle = MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle); | |
} else { | |
Handle = MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle); | |
} | |
} | |
[CompilerGenerated] | |
public PFFile (NSObjectFlag t) : base (t) {} | |
[CompilerGenerated] | |
public PFFile (IntPtr handle) : base (handle) {} | |
[Export ("fileWithData:")] | |
[CompilerGenerated] | |
public static PFFile FromData (NSData data) | |
{ | |
if (data == null) | |
throw new ArgumentNullException ("data"); | |
return (PFFile) Runtime.GetNSObject (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, selFileWithData_, data.Handle)); | |
} | |
[Export ("fileWithName:data:")] | |
[CompilerGenerated] | |
public static PFFile FromData (string name, NSData data) | |
{ | |
if (name == null) | |
throw new ArgumentNullException ("name"); | |
if (data == null) | |
throw new ArgumentNullException ("data"); | |
var nsname = NSString.CreateNative (name); | |
PFFile ret; | |
ret = (PFFile) Runtime.GetNSObject (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr (class_ptr, selFileWithNameData_, nsname, data.Handle)); | |
NSString.ReleaseNative (nsname); | |
return ret; | |
} | |
[Export ("fileWithName:contentsAtPath:")] | |
[CompilerGenerated] | |
public static PFFile FromPath (string name, string path) | |
{ | |
if (name == null) | |
throw new ArgumentNullException ("name"); | |
if (path == null) | |
throw new ArgumentNullException ("path"); | |
var nsname = NSString.CreateNative (name); | |
var nspath = NSString.CreateNative (path); | |
PFFile ret; | |
ret = (PFFile) Runtime.GetNSObject (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr (class_ptr, selFileWithNameContentsAtPath_, nsname, nspath)); | |
NSString.ReleaseNative (nsname);NSString.ReleaseNative (nspath); | |
return ret; | |
} | |
[Export ("save")] | |
[CompilerGenerated] | |
public virtual bool Save () | |
{ | |
if (IsDirectBinding) { | |
return MonoTouch.ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, selSave); | |
} else { | |
return MonoTouch.ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, selSave); | |
} | |
} | |
[Export ("save:")] | |
[CompilerGenerated] | |
public virtual bool Save (NSError error) | |
{ | |
if (error == null) | |
throw new ArgumentNullException ("error"); | |
if (IsDirectBinding) { | |
return MonoTouch.ObjCRuntime.Messaging.bool_objc_msgSend_IntPtr (this.Handle, selSave_, error.Handle); | |
} else { | |
return MonoTouch.ObjCRuntime.Messaging.bool_objc_msgSendSuper_IntPtr (this.SuperHandle, selSave_, error.Handle); | |
} | |
} | |
[Export ("saveInBackground")] | |
[CompilerGenerated] | |
public virtual void SaveAsync () | |
{ | |
if (IsDirectBinding) { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend (this.Handle, selSaveInBackground); | |
} else { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper (this.SuperHandle, selSaveInBackground); | |
} | |
} | |
[Export ("saveInBackgroundWithBlock:")] | |
[CompilerGenerated] | |
public unsafe virtual void SaveAsync (PFBooleanResult result) | |
{ | |
if (result == null) | |
throw new ArgumentNullException ("result"); | |
BlockLiteral *block_ptr_result; | |
BlockLiteral block_result; | |
block_result = new BlockLiteral (); | |
block_ptr_result = &block_result; | |
block_result.SetupBlock (static_InnerPFBooleanResult, result); | |
if (IsDirectBinding) { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSaveInBackgroundWithBlock_, (IntPtr) block_ptr_result); | |
} else { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSaveInBackgroundWithBlock_, (IntPtr) block_ptr_result); | |
} | |
block_ptr_result->CleanupBlock (); | |
} | |
[Export ("saveInBackgroundWithBlock:progressBlock:")] | |
[CompilerGenerated] | |
public unsafe virtual void SaveInBackgroundWithBlockprogressBlock (PFBooleanResult result, PFProgress progress) | |
{ | |
if (result == null) | |
throw new ArgumentNullException ("result"); | |
if (progress == null) | |
throw new ArgumentNullException ("progress"); | |
BlockLiteral *block_ptr_result; | |
BlockLiteral block_result; | |
block_result = new BlockLiteral (); | |
block_ptr_result = &block_result; | |
block_result.SetupBlock (static_InnerPFBooleanResult, result); | |
BlockLiteral *block_ptr_progress; | |
BlockLiteral block_progress; | |
block_progress = new BlockLiteral (); | |
block_ptr_progress = &block_progress; | |
block_progress.SetupBlock (static_InnerPFProgress, progress); | |
if (IsDirectBinding) { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selSaveInBackgroundWithBlockProgressBlock_, (IntPtr) block_ptr_result, (IntPtr) block_ptr_progress); | |
} else { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selSaveInBackgroundWithBlockProgressBlock_, (IntPtr) block_ptr_result, (IntPtr) block_ptr_progress); | |
} | |
block_ptr_result->CleanupBlock (); | |
block_ptr_progress->CleanupBlock (); | |
} | |
[Export ("saveInBackgroundWithTarget:selector:")] | |
[CompilerGenerated] | |
public virtual void SaveAsync (NSObject target, Selector selector) | |
{ | |
if (target == null) | |
throw new ArgumentNullException ("target"); | |
if (selector == null) | |
throw new ArgumentNullException ("selector"); | |
if (IsDirectBinding) { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selSaveInBackgroundWithTargetSelector_, target.Handle, selector.Handle); | |
} else { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selSaveInBackgroundWithTargetSelector_, target.Handle, selector.Handle); | |
} | |
} | |
[Export ("getData")] | |
[CompilerGenerated] | |
public virtual NSData GetData () | |
{ | |
if (IsDirectBinding) { | |
return (NSData) Runtime.GetNSObject (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selGetData)); | |
} else { | |
return (NSData) Runtime.GetNSObject (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selGetData)); | |
} | |
} | |
[Export ("getDataStream")] | |
[CompilerGenerated] | |
public virtual NSInputStream GetDataStream () | |
{ | |
if (IsDirectBinding) { | |
return (NSInputStream) Runtime.GetNSObject (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selGetDataStream)); | |
} else { | |
return (NSInputStream) Runtime.GetNSObject (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selGetDataStream)); | |
} | |
} | |
[Export ("getData:")] | |
[CompilerGenerated] | |
public virtual NSData GetData (NSError error) | |
{ | |
if (error == null) | |
throw new ArgumentNullException ("error"); | |
if (IsDirectBinding) { | |
return (NSData) Runtime.GetNSObject (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selGetData_, error.Handle)); | |
} else { | |
return (NSData) Runtime.GetNSObject (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selGetData_, error.Handle)); | |
} | |
} | |
[Export ("getDataStream:")] | |
[CompilerGenerated] | |
public virtual NSInputStream GetDataStream (NSError error) | |
{ | |
if (error == null) | |
throw new ArgumentNullException ("error"); | |
if (IsDirectBinding) { | |
return (NSInputStream) Runtime.GetNSObject (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selGetDataStream_, error.Handle)); | |
} else { | |
return (NSInputStream) Runtime.GetNSObject (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selGetDataStream_, error.Handle)); | |
} | |
} | |
[Export ("getDataInBackgroundWithBlock:")] | |
[CompilerGenerated] | |
public unsafe virtual void GetDataAsync (PFDataResult result) | |
{ | |
if (result == null) | |
throw new ArgumentNullException ("result"); | |
BlockLiteral *block_ptr_result; | |
BlockLiteral block_result; | |
block_result = new BlockLiteral (); | |
block_ptr_result = &block_result; | |
block_result.SetupBlock (static_InnerPFDataResult, result); | |
if (IsDirectBinding) { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selGetDataInBackgroundWithBlock_, (IntPtr) block_ptr_result); | |
} else { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selGetDataInBackgroundWithBlock_, (IntPtr) block_ptr_result); | |
} | |
block_ptr_result->CleanupBlock (); | |
} | |
[Export ("getDataStreamInBackgroundWithBlock:")] | |
[CompilerGenerated] | |
public unsafe virtual void GetDataStreamAsync (PFDataStreamResult block) | |
{ | |
if (block == null) | |
throw new ArgumentNullException ("block"); | |
BlockLiteral *block_ptr_block; | |
BlockLiteral block_block; | |
block_block = new BlockLiteral (); | |
block_ptr_block = &block_block; | |
block_block.SetupBlock (static_InnerPFDataStreamResult, block); | |
if (IsDirectBinding) { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selGetDataStreamInBackgroundWithBlock_, (IntPtr) block_ptr_block); | |
} else { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selGetDataStreamInBackgroundWithBlock_, (IntPtr) block_ptr_block); | |
} | |
block_ptr_block->CleanupBlock (); | |
} | |
[Export ("getDataInBackgroundWithBlock:progressBlock:")] | |
[CompilerGenerated] | |
public unsafe virtual void GetDataAsync (PFDataResult result, PFProgress progress) | |
{ | |
if (result == null) | |
throw new ArgumentNullException ("result"); | |
if (progress == null) | |
throw new ArgumentNullException ("progress"); | |
BlockLiteral *block_ptr_result; | |
BlockLiteral block_result; | |
block_result = new BlockLiteral (); | |
block_ptr_result = &block_result; | |
block_result.SetupBlock (static_InnerPFDataResult, result); | |
BlockLiteral *block_ptr_progress; | |
BlockLiteral block_progress; | |
block_progress = new BlockLiteral (); | |
block_ptr_progress = &block_progress; | |
block_progress.SetupBlock (static_InnerPFProgress, progress); | |
if (IsDirectBinding) { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selGetDataInBackgroundWithBlockProgressBlock_, (IntPtr) block_ptr_result, (IntPtr) block_ptr_progress); | |
} else { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selGetDataInBackgroundWithBlockProgressBlock_, (IntPtr) block_ptr_result, (IntPtr) block_ptr_progress); | |
} | |
block_ptr_result->CleanupBlock (); | |
block_ptr_progress->CleanupBlock (); | |
} | |
[Export ("getDataStreamInBackgroundWithBlock:progressBlock:")] | |
[CompilerGenerated] | |
public unsafe virtual void GetDataStreamAsync (PFDataStreamResult result, PFProgress progress) | |
{ | |
if (result == null) | |
throw new ArgumentNullException ("result"); | |
if (progress == null) | |
throw new ArgumentNullException ("progress"); | |
BlockLiteral *block_ptr_result; | |
BlockLiteral block_result; | |
block_result = new BlockLiteral (); | |
block_ptr_result = &block_result; | |
block_result.SetupBlock (static_InnerPFDataStreamResult, result); | |
BlockLiteral *block_ptr_progress; | |
BlockLiteral block_progress; | |
block_progress = new BlockLiteral (); | |
block_ptr_progress = &block_progress; | |
block_progress.SetupBlock (static_InnerPFProgress, progress); | |
if (IsDirectBinding) { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selGetDataStreamInBackgroundWithBlockProgressBlock_, (IntPtr) block_ptr_result, (IntPtr) block_ptr_progress); | |
} else { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selGetDataStreamInBackgroundWithBlockProgressBlock_, (IntPtr) block_ptr_result, (IntPtr) block_ptr_progress); | |
} | |
block_ptr_result->CleanupBlock (); | |
block_ptr_progress->CleanupBlock (); | |
} | |
[Export ("getDataInBackgroundWithTarget:selector:")] | |
[CompilerGenerated] | |
public virtual void GetDataAsync (NSObject target, Selector selector) | |
{ | |
if (target == null) | |
throw new ArgumentNullException ("target"); | |
if (selector == null) | |
throw new ArgumentNullException ("selector"); | |
if (IsDirectBinding) { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selGetDataInBackgroundWithTargetSelector_, target.Handle, selector.Handle); | |
} else { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selGetDataInBackgroundWithTargetSelector_, target.Handle, selector.Handle); | |
} | |
} | |
[Export ("cancel")] | |
[CompilerGenerated] | |
public virtual void Cancel () | |
{ | |
if (IsDirectBinding) { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend (this.Handle, selCancel); | |
} else { | |
MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper (this.SuperHandle, selCancel); | |
} | |
} | |
[CompilerGenerated] | |
public virtual string Name { | |
[Export ("name")] | |
get { | |
if (IsDirectBinding) { | |
return NSString.FromHandle (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selName)); | |
} else { | |
return NSString.FromHandle (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selName)); | |
} | |
} | |
} | |
[CompilerGenerated] | |
public virtual string Url { | |
[Export ("url")] | |
get { | |
if (IsDirectBinding) { | |
return NSString.FromHandle (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selUrl)); | |
} else { | |
return NSString.FromHandle (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selUrl)); | |
} | |
} | |
} | |
[CompilerGenerated] | |
public virtual bool IsDirty { | |
[Export ("isDirty")] | |
get { | |
if (IsDirectBinding) { | |
return MonoTouch.ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, selIsDirty); | |
} else { | |
return MonoTouch.ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, selIsDirty); | |
} | |
} | |
} | |
[CompilerGenerated] | |
public virtual bool IsDataAvailable { | |
[Export ("isDataAvailable")] | |
get { | |
if (IsDirectBinding) { | |
return MonoTouch.ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, selIsDataAvailable); | |
} else { | |
return MonoTouch.ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, selIsDataAvailable); | |
} | |
} | |
} | |
internal delegate System.Void InnerPFBooleanResult (IntPtr block, bool succeeded, IntPtr error); | |
static InnerPFBooleanResult static_InnerPFBooleanResult = new InnerPFBooleanResult (TrampolinePFBooleanResult); | |
[MonoPInvokeCallback (typeof (InnerPFBooleanResult))] | |
static unsafe System.Void TrampolinePFBooleanResult (IntPtr block, bool succeeded, IntPtr error) { | |
var descriptor = (BlockLiteral *) block; | |
var del = (Parse.PFBooleanResult) (descriptor->global_handle != IntPtr.Zero ? GCHandle.FromIntPtr (descriptor->global_handle).Target : GCHandle.FromIntPtr (descriptor->local_handle).Target); | |
if (del != null) | |
del (succeeded, (MonoTouch.Foundation.NSError) Runtime.GetNSObject (error)); | |
} | |
internal delegate System.Void InnerPFProgress (IntPtr block, int percentDone); | |
static InnerPFProgress static_InnerPFProgress = new InnerPFProgress (TrampolinePFProgress); | |
[MonoPInvokeCallback (typeof (InnerPFProgress))] | |
static unsafe System.Void TrampolinePFProgress (IntPtr block, int percentDone) { | |
var descriptor = (BlockLiteral *) block; | |
var del = (Parse.PFProgress) (descriptor->global_handle != IntPtr.Zero ? GCHandle.FromIntPtr (descriptor->global_handle).Target : GCHandle.FromIntPtr (descriptor->local_handle).Target); | |
if (del != null) | |
del (percentDone); | |
} | |
internal delegate System.Void InnerPFDataResult (IntPtr block, IntPtr data, IntPtr error); | |
static InnerPFDataResult static_InnerPFDataResult = new InnerPFDataResult (TrampolinePFDataResult); | |
[MonoPInvokeCallback (typeof (InnerPFDataResult))] | |
static unsafe System.Void TrampolinePFDataResult (IntPtr block, IntPtr data, IntPtr error) { | |
var descriptor = (BlockLiteral *) block; | |
var del = (Parse.PFDataResult) (descriptor->global_handle != IntPtr.Zero ? GCHandle.FromIntPtr (descriptor->global_handle).Target : GCHandle.FromIntPtr (descriptor->local_handle).Target); | |
if (del != null) | |
del ((MonoTouch.Foundation.NSData) Runtime.GetNSObject (data), (MonoTouch.Foundation.NSError) Runtime.GetNSObject (error)); | |
} | |
internal delegate System.Void InnerPFDataStreamResult (IntPtr block, IntPtr data, IntPtr error); | |
static InnerPFDataStreamResult static_InnerPFDataStreamResult = new InnerPFDataStreamResult (TrampolinePFDataStreamResult); | |
[MonoPInvokeCallback (typeof (InnerPFDataStreamResult))] | |
static unsafe System.Void TrampolinePFDataStreamResult (IntPtr block, IntPtr data, IntPtr error) { | |
var descriptor = (BlockLiteral *) block; | |
var del = (Parse.PFDataStreamResult) (descriptor->global_handle != IntPtr.Zero ? GCHandle.FromIntPtr (descriptor->global_handle).Target : GCHandle.FromIntPtr (descriptor->local_handle).Target); | |
if (del != null) | |
del ((MonoTouch.Foundation.NSInputStream) Runtime.GetNSObject (data), (MonoTouch.Foundation.NSError) Runtime.GetNSObject (error)); | |
} | |
} /* class PFFile */ | |
public delegate void PFBooleanResult (bool succeeded, NSError error); | |
public delegate void PFProgress (int percentDone); | |
public delegate void PFDataResult (NSData data, NSError error); | |
public delegate void PFDataStreamResult (NSInputStream data, NSError error); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment