NSData+FILE 0.1.0

NSData+FILE 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total85
Week0
Month0

Installs

Apps5
Test Targets1
powered by Segment

GitHub

Stars9
Watchers1
Forks1
Issues0
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 75


  • By
  • Conrad Kramer

NSData+FILE contains a single function, CKOpenData which allows an NSData object to be manipulated as a FILE stream.

Example Usage

NSMutableData *mutableData = [NSMutableData data];
FILE *stream = CKOpenData(mutableData);
fputs("Hello World!", stream);
fclose(stream);
NSString *string = [[NSString alloc] initWithData:mutableData encoding:NSUTF8StringEncoding];
NSLog(@"%@", string);
Hello World!

License

NSData+FILE is available under the MIT license. See the LICENSE file for more info.