Created
December 3, 2014 02:31
-
-
Save ksksue/5641bc99a4a356043350 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
// Queue初期化 | |
Queue *queue = [[Queue alloc] initWithSize:128]; | |
// NSDataをenqueue | |
NSData *indata = [[NSData alloc] init]; | |
... | |
[queue enqueue:indata]; | |
// すべてのNSDataをdequeue | |
while([queue count] > 0) { | |
NSData *outdata = (NSData*)[queue dequeue]; | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment