Monotone-Parent: a771bdffe7239e11ba5bb65889dde6d5d3a879f3

Monotone-Revision: a9886e6c9acfb5c097b185a254e620a6a0094f1f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-09-30T19:58:39
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2011-09-30 19:58:39 +00:00
parent 7f80374888
commit 18686beb11
3 changed files with 17 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2011-09-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/NSData+MAPIStore.m (-appendUInt16): new method.
* OpenChange/EOQualifier+MAPIFS.m (-[EOKeyValueQUalifier
_evaluateMAPIFSMessageProperties:): ensure finalKey is never nil
nor undefined.

View File

@ -47,6 +47,7 @@
@interface NSMutableData (MAPIStoreDataTypes)
- (void) appendUInt8: (uint8_t) value;
- (void) appendUInt16: (uint16_t) value;
- (void) appendUInt32: (uint32_t) value;
@end

View File

@ -176,6 +176,20 @@ static void _fillFlatUIDWithGUID (struct FlatUID_r *flatUID, const struct GUID *
[self appendBytes: (char *) &value length: 1];
}
- (void) appendUInt16: (uint16_t) value
{
NSUInteger count;
char bytes[2];
for (count = 0; count < 2; count++)
{
bytes[count] = value & 0xff;
value >>= 8;
}
[self appendBytes: bytes length: 2];
}
- (void) appendUInt32: (uint32_t) value
{
NSUInteger count;