Latest 0.1.0
License MIT
Platforms ios 2.0, requires ARC
Frameworks Foundation

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);
NSString *string = [[NSString alloc] initWithData:mutableData encoding:NSUTF8StringEncoding];
NSLog(@"%@", string);
Hello World!


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": "",
    "authors": {
        "Conrad Kramer": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "source_files": "NSData+FILE",
    "requires_arc": true,
    "platforms": {
        "ios": "2.0"
    "frameworks": "Foundation"

Pin It on Pinterest

Share This