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

dashevo/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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published