Monotone-Parent: 3a115c300e05230d3e0392a7aa86ccee296f50cc

Monotone-Revision: c9072cd9f62ce341982a28f6b662d079949b101d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-11-22T19:53:53
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-11-22 19:53:53 +00:00
parent 5c7d7aa062
commit 7616ee92a1
4 changed files with 26 additions and 2 deletions

View File

@@ -149,6 +149,26 @@
return mvResult;
}
- (struct LongArray_r *) asMVLongInMemCtx: (void *) memCtx
{
struct LongArray_r *list;
NSNumber *number;
NSInteger count, max;
max = [self count];
list = talloc_zero(memCtx, struct LongArray_r);
list->cValues = max;
list->lpl = talloc_array(list, uint32_t, max);
for (count = 0; count < max; count++)
{
number = [self objectAtIndex: count];
list->lpl[count] = [number longValue];
}
return list;
}
+ (id) arrayFromMVI8: (const struct I8Array_r *) mvI8
{
NSUInteger count;