Skip to content

Objective-C wrapper for TinyCbor - Concise Binary Object Representation (CBOR) Library

License

Notifications You must be signed in to change notification settings

swoozey/TinyCborObjc

 
 

Repository files navigation

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.

About

Objective-C wrapper for TinyCbor - Concise Binary Object Representation (CBOR) Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 98.2%
  • Ruby 1.8%