TinyCborObjc 0.4.3

TinyCborObjc 0.4.3

Maintained by Andrew Podkovyrin.



TinyCborObjc

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.