Latest 0.1.0
Homepage https://github.com/conradev/NSData-FILE
License MIT
Platforms ios 2.0, requires ARC
Frameworks Foundation
Authors

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.

Latest podspec

{
    "name": "NSData+FILE",
    "version": "0.1.0",
    "license": "MIT",
    "summary": "Open an NSData object as a FILE stream",
    "homepage": "https://github.com/conradev/NSData-FILE",
    "authors": {
        "Conrad Kramer": "[email protected]"
    },
    "source": {
        "git": "https://github.com/conradev/NSData-FILE.git",
        "tag": "0.1.0"
    },
    "source_files": "NSData+FILE",
    "requires_arc": true,
    "platforms": {
        "ios": "2.0"
    },
    "frameworks": "Foundation"
}

Pin It on Pinterest

Share This