353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
|
/* We don't care, as we only made it smaller */
[e release];
}
}
- copy
{
OFDataArray *copy = [[OFDataArray alloc] initWithItemSize: itemSize];
[copy addNItems: count
fromCArray: data];
return copy;
}
|
|
|
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
|
/* We don't care, as we only made it smaller */
[e release];
}
}
- copy
{
OFDataArray *copy = [[isa alloc] initWithItemSize: itemSize];
[copy addNItems: count
fromCArray: data];
return copy;
}
|
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
|
newSize = (count * itemSize + lastPageByte) & ~lastPageByte;
if (size != newSize)
data = [self resizeMemory: data
toSize: newSize];
size = newSize;
}
- copy
{
OFDataArray *copy = [[OFBigDataArray alloc] initWithItemSize: itemSize];
[copy addNItems: count
fromCArray: data];
return copy;
}
@end
|
<
<
<
<
<
<
<
<
<
<
|
573
574
575
576
577
578
579
580
|
newSize = (count * itemSize + lastPageByte) & ~lastPageByte;
if (size != newSize)
data = [self resizeMemory: data
toSize: newSize];
size = newSize;
}
@end
|