mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-18 21:23:20 +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:
@@ -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