mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 08:34:30 +00:00
Monotone-Parent: a771bdffe7239e11ba5bb65889dde6d5d3a879f3
Monotone-Revision: a9886e6c9acfb5c097b185a254e620a6a0094f1f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-09-30T19:58:39 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
@interface NSMutableData (MAPIStoreDataTypes)
|
||||
|
||||
- (void) appendUInt8: (uint8_t) value;
|
||||
- (void) appendUInt16: (uint16_t) value;
|
||||
- (void) appendUInt32: (uint32_t) value;
|
||||
|
||||
@end
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user