Created
November 29, 2013 08:55
-
-
Save dodikk/7703124 to your computer and use it in GitHub Desktop.
objc_msgSend() and literal constants on x64
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
const int64_t bytesWritten = 150; | |
const int64_t totalBytesWritten = 500; | |
const int64_t totalBytesExpectedToWrite = 3872; | |
SEL delegateMethod = @selector(URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:); | |
objc_msgSend | |
( | |
mockSessionDelegate, delegateMethod, | |
mockSession, mockTask, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite | |
); |
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
SEL delegateMethod = @selector(URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:); | |
objc_msgSend | |
( | |
mockSessionDelegate, delegateMethod, | |
mockSession, mockTask, 150, 500, 3872 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment