Skip to content

Instantly share code, notes, and snippets.

@conceptdev
Created February 28, 2012 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save conceptdev/1935358 to your computer and use it in GitHub Desktop.
Save conceptdev/1935358 to your computer and use it in GitHub Desktop.
NSURLConnectionDownloadDelegate binding II
[Export("connection:didWriteData:totalBytesWritten:expectedTotalBytes:")]
public void DidWriteData (NSUrlConnection connection, long bytesWrittenA, int totalBytesWrittenA, int totalBytesWrittenB, int expectedTotalBytesA, int expectedTotalBytesB) {
Console.WriteLine ("bytesWrittenA:"+bytesWrittenA);
// Console.WriteLine ("bytesWrittenB:"+bytesWrittenB);
Console.WriteLine ("totalBytesWrittenA:"+totalBytesWrittenA);
Console.WriteLine ("totalBytesWrittenB:"+totalBytesWrittenB);
Console.WriteLine ("expectedTotalBytesA:"+expectedTotalBytesA);
Console.WriteLine ("expectedTotalBytesB:"+expectedTotalBytesB);
}
--------- OUTPUT ----------
bytesWrittenA:36140
totalBytesWrittenA:0
totalBytesWrittenB:36140
expectedTotalBytesA:19193516
expectedTotalBytesB:546788840
bytesWrittenA:42760
totalBytesWrittenA:0
totalBytesWrittenB:78900
expectedTotalBytesA:19193516
expectedTotalBytesB:-1992324352
bytesWrittenA:64300
totalBytesWrittenA:0
totalBytesWrittenB:143200
expectedTotalBytesA:19193516
expectedTotalBytesB:17
bytesWrittenA:130180
totalBytesWrittenA:0
totalBytesWrittenB:273380
expectedTotalBytesA:19193516
expectedTotalBytesB:-2071529984
bytesWrittenA:65380
totalBytesWrittenA:0
totalBytesWrittenB:338760
expectedTotalBytesA:19193516
expectedTotalBytesB:24
bytesWrittenA:65400
totalBytesWrittenA:0
totalBytesWrittenB:404160
expectedTotalBytesA:19193516
expectedTotalBytesB:37799424
bytesWrittenA:64860
totalBytesWrittenA:0
totalBytesWrittenB:469020
expectedTotalBytesA:19193516
expectedTotalBytesB:264
bytesWrittenA:99360
totalBytesWrittenA:0
totalBytesWrittenB:568380
expectedTotalBytesA:19193516
expectedTotalBytesB:160116814
bytesWrittenA:95220
totalBytesWrittenA:0
totalBytesWrittenB:663600
expectedTotalBytesA:19193516
expectedTotalBytesB:-312
bytesWrittenA:64860
totalBytesWrittenA:0
totalBytesWrittenB:728460
expectedTotalBytesA:19193516
expectedTotalBytesB:264
bytesWrittenA:64860
totalBytesWrittenA:0
totalBytesWrittenB:793320
expectedTotalBytesA:19193516
expectedTotalBytesB:264
bytesWrittenA:64860
totalBytesWrittenA:0
totalBytesWrittenB:858180
expectedTotalBytesA:19193516
expectedTotalBytesB:264
bytesWrittenA:129720
totalBytesWrittenA:0
totalBytesWrittenB:987900
expectedTotalBytesA:19193516
expectedTotalBytesB:-252
bytesWrittenA:64860
totalBytesWrittenA:0
totalBytesWrittenB:1052760
expectedTotalBytesA:19193516
expectedTotalBytesB:264
bytesWrittenA:64860
totalBytesWrittenA:0
totalBytesWrittenB:1117620
expectedTotalBytesA:19193516
expectedTotalBytesB:264
bytesWrittenA:64860
totalBytesWrittenA:0
totalBytesWrittenB:1182480
expectedTotalBytesA:19193516
expectedTotalBytesB:264
bytesWrittenA:82800
totalBytesWrittenA:0
totalBytesWrittenB:1265280
expectedTotalBytesA:19193516
expectedTotalBytesB:205572095
bytesWrittenA:111780
totalBytesWrittenA:0
totalBytesWrittenB:1377060
expectedTotalBytesA:19193516
expectedTotalBytesB:-1929108412
bytesWrittenA:64860
totalBytesWrittenA:0
totalBytesWrittenB:1441920
expectedTotalBytesA:19193516
expectedTotalBytesB:264
bytesWrittenA:64860
totalBytesWrittenA:0
totalBytesWrittenB:1506780
expectedTotalBytesA:19193516
expectedTotalBytesB:264
bytesWrittenA:69000
totalBytesWrittenA:0
totalBytesWrittenB:1575780
expectedTotalBytesA:19193516
expectedTotalBytesB:2106320895
bytesWrittenA:125580
totalBytesWrittenA:0
totalBytesWrittenB:1701360
expectedTotalBytesA:19193516
expectedTotalBytesB:7232
bytesWrittenA:64860
totalBytesWrittenA:0
totalBytesWrittenB:1766220
expectedTotalBytesA:19193516
expectedTotalBytesB:264
bytesWrittenA:64860
totalBytesWrittenA:0
totalBytesWrittenB:1831080
expectedTotalBytesA:19193516
expectedTotalBytesB:264
bytesWrittenA:64860
totalBytesWrittenA:0
totalBytesWrittenB:1895940
expectedTotalBytesA:19193516
expectedTotalBytesB:264
bytesWrittenA:88320
totalBytesWrittenA:0
totalBytesWrittenB:1984260
expectedTotalBytesA:19193516
expectedTotalBytesB:1284046881
bytesWrittenA:31242
totalBytesWrittenA:0
totalBytesWrittenB:2015502
expectedTotalBytesA:19193516
expectedTotalBytesB:1955135521
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment