TinyCborObjc 0.4.6

TinyCborObjc 0.4.6

Maintained by Andrew Podkovyrin.



TinyCborObjc

CI 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'

Authors

Andrew Podkovyrin, [email protected]

Hamilton Chapman, [email protected]

Connor Power, [email protected]

License

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