Latest 0.4.2
Homepage https://github.com/dashevo/TinyCborObjc
License MIT
Platforms ios 9.0
Dependencies tinycbor
Authors

CI Status
Version
License
Platform

TinyCborObjc allows encoding and decoding Foundation-objects into/from CBOR representation.

Supported types:

  • NSDictionary
  • NSArray
  • NSString
  • NSNumber
  • NSNull
  • NSData

Usage

Encoding

#import <TinyCborObjc/NSObject+DSCborEncoding.h>

NSDictionary *dictionary = ...;
NSData *cborData = [dictionary ds_cborEncodedObject];

Decoding

#import <TinyCborObjc/NSData+DSCborDecoding.h>

NSData *data = ...; // CBOR data
NSError *error = nil;
id decoded = [data ds_decodeCborError:&error];

Dependencies

Build on top of tinycbor library (integrated as pod dependency).

Installation

TinyCborObjc is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'TinyCborObjc'

Author

Andrew Podkovyrin, [email protected]

License

TinyCborObjc is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "TinyCborObjc",
    "version": "0.4.2",
    "summary": "Objective-C wrapper for TinyCbor - Concise Binary Object Representation (CBOR) Library",
    "description": "TinyCborObjc allows encoding/decoding Foundation-objects into/from CBOR representation. Supports NSDictionary, NSArray, NSString, NSNumber and NSNull.",
    "homepage": "https://github.com/dashevo/TinyCborObjc",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Andrew Podkovyrin": "[email protected]"
    },
    "source": {
        "git": "https://github.com/dashevo/TinyCborObjc.git",
        "tag": "0.4.2"
    },
    "social_media_url": "https://twitter.com/podkovyr",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "TinyCborObjc/*.{h,m,c}",
    "private_header_files": "TinyCborObjc/cbortojson_nsstring.h",
    "dependencies": {
        "tinycbor": [
            "0.5.3-alpha3"
        ]
    },
    "pod_target_xcconfig": {
        "CLANG_WARN_DOCUMENTATION_COMMENTS": "NO",
        "GCC_WARN_64_TO_32_BIT_CONVERSION": "NO"
    }
}

Pin It on Pinterest

Share This