Latest | 0.0.1 |
---|---|
Homepage | https://github.com/mattt/MsgPackSerialization |
License | MIT |
Platforms | ios 5.0, osx 10.7, requires ARC |
Authors |
MsgPackSerialization
encodes and decodes between Objective-C objects and MsgPack data, following the API conventions of Foundation’s NSJSONSerialization
class.
Usage
id obj = @{
@"foo": @(42.0),
@"bar": @"lorem ipsum",
@"baz": @[@1, @2, @3, @4]
};
NSError *error = nil;
CFAbsoluteTime t_0 = CFAbsoluteTimeGetCurrent();
NSData *data = [MsgPackSerialization dataWithMsgPackObject:obj options:0 error:&error];
NSLog(@"Packed: %@ (Elapsed: %g)", data, CFAbsoluteTimeGetCurrent() - t_0);
CFAbsoluteTime t_1 = CFAbsoluteTimeGetCurrent();
NSLog(@"Unpacked: %@ (Elapsed: %g)", [MsgPackSerialization MsgPackObjectWithData:data options:0 error:&error], CFAbsoluteTimeGetCurrent() - t_1);
Contact
Mattt Thompson
License
MsgPackSerialization is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "MsgPackSerialization", "version": "0.0.1", "license": "MIT", "summary": "Encodes and decodes between Objective-C objects and MsgPack.", "homepage": "https://github.com/mattt/MsgPackSerialization", "social_media_url": "https://twitter.com/mattt", "authors": { "Mattt Thompson": "[email protected]" }, "source": { "git": "https://github.com/mattt/MsgPackSerialization.git", "tag": "0.0.1" }, "source_files": [ "MsgPackSerialization", "MsgPackSerialization/msgpack_src/*.{c,h}", "MsgPackSerialization/msgpack_src/msgpack/*.h" ], "requires_arc": true, "platforms": { "ios": "5.0", "osx": "10.7" } }
Tue, 01 Mar 2016 11:58:03 +0000