mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-02 21:56:23 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user