Lines Matching refs:_count
54 //% _count = NEW_COUNT;
56 //% _count = NEW_COUNT;
71 //% NSUInteger _count;
75 //%@synthesize count = _count;
102 //% return [self initWithValues:array->_values count:array->_count];
113 //% _count = count;
134 //% return [[GPB##NAME##Array allocWithZone:zone] initWithValues:_values count:_count];
140 //%VALIDATE_RANGE(index, _count)
168 //% return (_count == other->_count
169 //% && memcmp(_values, other->_values, (_count * sizeof(TYPE))) == 0);
174 //% return _count;
179 //% for (NSUInteger i = 0, count = _count; i < count; ++i) {
199 //% for (NSUInteger i = 0, count = _count; i < count; ++i) {
203 //% } else if (_count > 0) {
204 //% for (NSUInteger i = _count; i > 0; --i) {
219 //%MUTATION_HOOK_##HOOK_1() NSUInteger initialCount = _count;
229 //%VALIDATE_RANGE(index, _count + 1)
230 //%MUTATION_HOOK_##HOOK_2() NSUInteger initialCount = _count;
243 //%VALIDATE_RANGE(index, _count)
252 //% _count = 0;
263 //% [self add##ACCESSOR_NAME##Values:array->_values count:array->_count];
267 //%VALIDATE_RANGE(index, _count)
268 //% NSUInteger newCount = _count - 1;
281 //%VALIDATE_RANGE(idx1, _count)
282 //%VALIDATE_RANGE(idx2, _count)
297 NSUInteger _count;
301 @synthesize count = _count;
328 return [self initWithValues:array->_values count:array->_count];
339 _count = count;
360 return [[GPBInt32Array allocWithZone:zone] initWithValues:_values count:_count];
378 return (_count == other->_count
379 && memcmp(_values, other->_values, (_count * sizeof(int32_t))) == 0);
384 return _count;
389 for (NSUInteger i = 0, count = _count; i < count; ++i) {
409 for (NSUInteger i = 0, count = _count; i < count; ++i) {
413 } else if (_count > 0) {
414 for (NSUInteger i = _count; i > 0; --i) {
422 if (index >= _count) {
425 (unsigned long)index, (unsigned long)_count];
434 _count = 0;
448 NSUInteger initialCount = _count;
453 _count = newCount;
461 if (index >= _count + 1) {
464 (unsigned long)index, (unsigned long)_count + 1];
466 NSUInteger initialCount = _count;
471 _count = newCount;
482 if (index >= _count) {
485 (unsigned long)index, (unsigned long)_count];
491 [self addValues:array->_values count:array->_count];
495 if (index >= _count) {
498 (unsigned long)index, (unsigned long)_count];
500 NSUInteger newCount = _count - 1;
504 _count = newCount;
511 _count = 0;
519 if (idx1 >= _count) {
522 (unsigned long)idx1, (unsigned long)_count];
524 if (idx2 >= _count) {
527 (unsigned long)idx2, (unsigned long)_count];
544 NSUInteger _count;
548 @synthesize count = _count;
575 return [self initWithValues:array->_values count:array->_count];
586 _count = count;
607 return [[GPBUInt32Array allocWithZone:zone] initWithValues:_values count:_count];
625 return (_count == other->_count
626 && memcmp(_values, other->_values, (_count * sizeof(uint32_t))) == 0);
631 return _count;
636 for (NSUInteger i = 0, count = _count; i < count; ++i) {
656 for (NSUInteger i = 0, count = _count; i < count; ++i) {
660 } else if (_count > 0) {
661 for (NSUInteger i = _count; i > 0; --i) {
669 if (index >= _count) {
672 (unsigned long)index, (unsigned long)_count];
681 _count = 0;
695 NSUInteger initialCount = _count;
700 _count = newCount;
708 if (index >= _count + 1) {
711 (unsigned long)index, (unsigned long)_count + 1];
713 NSUInteger initialCount = _count;
718 _count = newCount;
729 if (index >= _count) {
732 (unsigned long)index, (unsigned long)_count];
738 [self addValues:array->_values count:array->_count];
742 if (index >= _count) {
745 (unsigned long)index, (unsigned long)_count];
747 NSUInteger newCount = _count - 1;
751 _count = newCount;
758 _count = 0;
766 if (idx1 >= _count) {
769 (unsigned long)idx1, (unsigned long)_count];
771 if (idx2 >= _count) {
774 (unsigned long)idx2, (unsigned long)_count];
791 NSUInteger _count;
795 @synthesize count = _count;
822 return [self initWithValues:array->_values count:array->_count];
833 _count = count;
854 return [[GPBInt64Array allocWithZone:zone] initWithValues:_values count:_count];
872 return (_count == other->_count
873 && memcmp(_values, other->_values, (_count * sizeof(int64_t))) == 0);
878 return _count;
883 for (NSUInteger i = 0, count = _count; i < count; ++i) {
903 for (NSUInteger i = 0, count = _count; i < count; ++i) {
907 } else if (_count > 0) {
908 for (NSUInteger i = _count; i > 0; --i) {
916 if (index >= _count) {
919 (unsigned long)index, (unsigned long)_count];
928 _count = 0;
942 NSUInteger initialCount = _count;
947 _count = newCount;
955 if (index >= _count + 1) {
958 (unsigned long)index, (unsigned long)_count + 1];
960 NSUInteger initialCount = _count;
965 _count = newCount;
976 if (index >= _count) {
979 (unsigned long)index, (unsigned long)_count];
985 [self addValues:array->_values count:array->_count];
989 if (index >= _count) {
992 (unsigned long)index, (unsigned long)_count];
994 NSUInteger newCount = _count - 1;
998 _count = newCount;
1005 _count = 0;
1013 if (idx1 >= _count) {
1016 (unsigned long)idx1, (unsigned long)_count];
1018 if (idx2 >= _count) {
1021 (unsigned long)idx2, (unsigned long)_count];
1038 NSUInteger _count;
1042 @synthesize count = _count;
1069 return [self initWithValues:array->_values count:array->_count];
1080 _count = count;
1101 return [[GPBUInt64Array allocWithZone:zone] initWithValues:_values count:_count];
1119 return (_count == other->_count
1120 && memcmp(_values, other->_values, (_count * sizeof(uint64_t))) == 0);
1125 return _count;
1130 for (NSUInteger i = 0, count = _count; i < count; ++i) {
1150 for (NSUInteger i = 0, count = _count; i < count; ++i) {
1154 } else if (_count > 0) {
1155 for (NSUInteger i = _count; i > 0; --i) {
1163 if (index >= _count) {
1166 (unsigned long)index, (unsigned long)_count];
1175 _count = 0;
1189 NSUInteger initialCount = _count;
1194 _count = newCount;
1202 if (index >= _count + 1) {
1205 (unsigned long)index, (unsigned long)_count + 1];
1207 NSUInteger initialCount = _count;
1212 _count = newCount;
1223 if (index >= _count) {
1226 (unsigned long)index, (unsigned long)_count];
1232 [self addValues:array->_values count:array->_count];
1236 if (index >= _count) {
1239 (unsigned long)index, (unsigned long)_count];
1241 NSUInteger newCount = _count - 1;
1245 _count = newCount;
1252 _count = 0;
1260 if (idx1 >= _count) {
1263 (unsigned long)idx1, (unsigned long)_count];
1265 if (idx2 >= _count) {
1268 (unsigned long)idx2, (unsigned long)_count];
1285 NSUInteger _count;
1289 @synthesize count = _count;
1316 return [self initWithValues:array->_values count:array->_count];
1327 _count = count;
1348 return [[GPBFloatArray allocWithZone:zone] initWithValues:_values count:_count];
1366 return (_count == other->_count
1367 && memcmp(_values, other->_values, (_count * sizeof(float))) == 0);
1372 return _count;
1377 for (NSUInteger i = 0, count = _count; i < count; ++i) {
1397 for (NSUInteger i = 0, count = _count; i < count; ++i) {
1401 } else if (_count > 0) {
1402 for (NSUInteger i = _count; i > 0; --i) {
1410 if (index >= _count) {
1413 (unsigned long)index, (unsigned long)_count];
1422 _count = 0;
1436 NSUInteger initialCount = _count;
1441 _count = newCount;
1449 if (index >= _count + 1) {
1452 (unsigned long)index, (unsigned long)_count + 1];
1454 NSUInteger initialCount = _count;
1459 _count = newCount;
1470 if (index >= _count) {
1473 (unsigned long)index, (unsigned long)_count];
1479 [self addValues:array->_values count:array->_count];
1483 if (index >= _count) {
1486 (unsigned long)index, (unsigned long)_count];
1488 NSUInteger newCount = _count - 1;
1492 _count = newCount;
1499 _count = 0;
1507 if (idx1 >= _count) {
1510 (unsigned long)idx1, (unsigned long)_count];
1512 if (idx2 >= _count) {
1515 (unsigned long)idx2, (unsigned long)_count];
1532 NSUInteger _count;
1536 @synthesize count = _count;
1563 return [self initWithValues:array->_values count:array->_count];
1574 _count = count;
1595 return [[GPBDoubleArray allocWithZone:zone] initWithValues:_values count:_count];
1613 return (_count == other->_count
1614 && memcmp(_values, other->_values, (_count * sizeof(double))) == 0);
1619 return _count;
1624 for (NSUInteger i = 0, count = _count; i < count; ++i) {
1644 for (NSUInteger i = 0, count = _count; i < count; ++i) {
1648 } else if (_count > 0) {
1649 for (NSUInteger i = _count; i > 0; --i) {
1657 if (index >= _count) {
1660 (unsigned long)index, (unsigned long)_count];
1669 _count = 0;
1683 NSUInteger initialCount = _count;
1688 _count = newCount;
1696 if (index >= _count + 1) {
1699 (unsigned long)index, (unsigned long)_count + 1];
1701 NSUInteger initialCount = _count;
1706 _count = newCount;
1717 if (index >= _count) {
1720 (unsigned long)index, (unsigned long)_count];
1726 [self addValues:array->_values count:array->_count];
1730 if (index >= _count) {
1733 (unsigned long)index, (unsigned long)_count];
1735 NSUInteger newCount = _count - 1;
1739 _count = newCount;
1746 _count = 0;
1754 if (idx1 >= _count) {
1757 (unsigned long)idx1, (unsigned long)_count];
1759 if (idx2 >= _count) {
1762 (unsigned long)idx2, (unsigned long)_count];
1779 NSUInteger _count;
1783 @synthesize count = _count;
1810 return [self initWithValues:array->_values count:array->_count];
1821 _count = count;
1842 return [[GPBBoolArray allocWithZone:zone] initWithValues:_values count:_count];
1860 return (_count == other->_count
1861 && memcmp(_values, other->_values, (_count * sizeof(BOOL))) == 0);
1866 return _count;
1871 for (NSUInteger i = 0, count = _count; i < count; ++i) {
1891 for (NSUInteger i = 0, count = _count; i < count; ++i) {
1895 } else if (_count > 0) {
1896 for (NSUInteger i = _count; i > 0; --i) {
1904 if (index >= _count) {
1907 (unsigned long)index, (unsigned long)_count];
1916 _count = 0;
1930 NSUInteger initialCount = _count;
1935 _count = newCount;
1943 if (index >= _count + 1) {
1946 (unsigned long)index, (unsigned long)_count + 1];
1948 NSUInteger initialCount = _count;
1953 _count = newCount;
1964 if (index >= _count) {
1967 (unsigned long)index, (unsigned long)_count];
1973 [self addValues:array->_values count:array->_count];
1977 if (index >= _count) {
1980 (unsigned long)index, (unsigned long)_count];
1982 NSUInteger newCount = _count - 1;
1986 _count = newCount;
1993 _count = 0;
2001 if (idx1 >= _count) {
2004 (unsigned long)idx1, (unsigned long)_count];
2006 if (idx2 >= _count) {
2009 (unsigned long)idx2, (unsigned long)_count];
2026 NSUInteger _count;
2030 @synthesize count = _count;
2064 count:array->_count];
2085 _count = count;
2110 count:_count];
2131 return (_count == other->_count
2132 && memcmp(_values, other->_values, (_count * sizeof(int32_t))) == 0);
2137 return _count;
2142 for (NSUInteger i = 0, count = _count; i < count; ++i) {
2162 for (NSUInteger i = 0, count = _count; i < count; ++i) {
2166 } else if (_count > 0) {
2167 for (NSUInteger i = _count; i > 0; --i) {
2176 //%PDDM-EXPAND VALIDATE_RANGE(index, _count)
2179 if (index >= _count) {
2182 (unsigned long)index, (unsigned long)_count];
2184 //%PDDM-EXPAND-END VALIDATE_RANGE(index, _count)
2193 //%PDDM-EXPAND VALIDATE_RANGE(index, _count)
2196 if (index >= _count) {
2199 (unsigned long)index, (unsigned long)_count];
2201 //%PDDM-EXPAND-END VALIDATE_RANGE(index, _count)
2216 int32_t *end = scan + _count;
2225 } else if (_count > 0) {
2227 int32_t *scan = end + (_count - 1);
2228 for (NSUInteger i = (_count - 1); scan >= end; --i, --scan) {
2246 _count = 0;
2260 NSUInteger initialCount = _count;
2265 _count = newCount;
2273 if (index >= _count + 1) {
2276 (unsigned long)index, (unsigned long)_count + 1];
2278 NSUInteger initialCount = _count;
2283 _count = newCount;
2294 if (index >= _count) {
2297 (unsigned long)index, (unsigned long)_count];
2303 [self addRawValues:array->_values count:array->_count];
2307 if (index >= _count) {
2310 (unsigned long)index, (unsigned long)_count];
2312 NSUInteger newCount = _count - 1;
2316 _count = newCount;
2323 _count = 0;
2331 if (idx1 >= _count) {
2334 (unsigned long)idx1, (unsigned long)_count];
2336 if (idx2 >= _count) {
2339 (unsigned long)idx2, (unsigned long)_count];
2363 NSUInteger initialCount = _count;
2368 _count = newCount;
2376 if (index >= _count + 1) {
2379 (unsigned long)index, (unsigned long)_count + 1];
2386 NSUInteger initialCount = _count;
2391 _count = newCount;
2402 if (index >= _count) {
2405 (unsigned long)index, (unsigned long)_count];