Monotone-Parent: 0d1809a8a5fbb980e78d197e8f5c0c634b960a2e

Monotone-Revision: cd4c34d79c62c8b6a1f9ccfb14ea9a79442034c6

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-16T20:51:51
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2012-03-16 20:51:51 +00:00
parent 38e085ae8f
commit 3ad93f3257
5 changed files with 30 additions and 34 deletions
+17
View File
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#import "NSString+MAPIStore.h"
#import "NSData+MAPIStore.h"
#undef DEBUG
@@ -168,6 +170,21 @@ static void _fillFlatUIDWithGUID (struct FlatUID_r *flatUID, const struct GUID *
return xid;
}
+ (id) dataWithChangeKeyGUID: (NSString *) guidString
andCnt: (NSData *) globCnt;
{
NSMutableData *changeKey;
struct GUID guid;
changeKey = [NSMutableData dataWithCapacity: 16 + [globCnt length]];
[guidString extractGUID: &guid];
[changeKey appendData: [NSData dataWithGUID: &guid]];
[changeKey appendData: globCnt];
return changeKey;
}
@end
@implementation NSMutableData (MAPIStoreDataTypes)