diff options
author | 2013-01-21 15:18:09 -0800 | |
---|---|---|
committer | 2013-01-21 15:18:09 -0800 | |
commit | 8a948953484e29ee7f17e3dd90fee352d66373eb (patch) | |
tree | c0c16d3512a3da15192a5e778b4955c792c742e4 /src/objc/utils/NSData+MCO.mm | |
parent | 119b654d35db873bb7dbc77e24649462eb1aa4e6 (diff) |
foundation additions
Diffstat (limited to 'src/objc/utils/NSData+MCO.mm')
-rw-r--r-- | src/objc/utils/NSData+MCO.mm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/objc/utils/NSData+MCO.mm b/src/objc/utils/NSData+MCO.mm new file mode 100644 index 00000000..10c63f7e --- /dev/null +++ b/src/objc/utils/NSData+MCO.mm @@ -0,0 +1,18 @@ +// +// NSData+MCO.m +// mailcore2 +// +// Created by DINH Viêt Hoà on 1/21/13. +// Copyright (c) 2013 MailCore. All rights reserved. +// + +#import "NSData+MCO.h" + +@implementation NSData (MCO) + ++ (NSData *) mco_dataWithMCData:(mailcore::Data *)cppData +{ + return [NSData dataWithBytes:cppData->bytes() length:cppData->length()]; +} + +@end |