mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-16 18:58:50 +00:00
Monotone-Parent: 56370c6160c963011c084c7793dbe96aef748e92
Monotone-Revision: 3a115c300e05230d3e0392a7aa86ccee296f50cc Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-11-22T19:43:46 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -230,6 +230,28 @@
|
||||
return mvResult;
|
||||
}
|
||||
|
||||
- (struct BinaryArray_r *) asMVBinaryInMemCtx: (void *) memCtx
|
||||
{
|
||||
struct BinaryArray_r *list;
|
||||
NSData *data;
|
||||
NSInteger count, max;
|
||||
|
||||
max = [self count];
|
||||
|
||||
list = talloc_zero(memCtx,struct BinaryArray_r);
|
||||
list->cValues = max;
|
||||
list->lpbin = talloc_array(list, struct Binary_r, max);
|
||||
|
||||
for (count = 0; count < max; count++)
|
||||
{
|
||||
data = [self objectAtIndex: count];
|
||||
list->lpbin[count].cb = [data length];
|
||||
list->lpbin[count].lpb = talloc_memdup (list->lpbin, [data bytes], list->lpbin[count].cb);
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
+ (id) arrayFromMVGuid: (const struct FlatUIDArray_r *) mvGuid
|
||||
{
|
||||
NSUInteger count;
|
||||
|
||||
Reference in New Issue
Block a user