Lines Matching refs:_values
70 //% TYPE *_values;
102 //% return [self initWithValues:array->_values count:array->_count];
109 //% _values = reallocf(_values, count * sizeof(TYPE));
110 //% if (_values != NULL) {
112 //% memcpy(_values, values, count * sizeof(TYPE));
134 //% return [[GPB##NAME##Array allocWithZone:zone] initWithValues:_values count:_count];
141 //% return _values[index];
157 //% free(_values);
169 //% && memcmp(_values, other->_values, (_count * sizeof(TYPE))) == 0);
181 //% [result appendFormat:@"##FORMAT##", _values[i]];
183 //% [result appendFormat:@", ##FORMAT##", _values[i]];
200 //% block(_values[i], i, &stop);
205 //% block(_values[i - 1], (i - 1), &stop);
222 //% memcpy(&_values[initialCount], values, count * sizeof(TYPE));
234 //% memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(TYPE));
236 //% _values[index] = value;
244 //%MUTATION_HOOK_##HOOK_2() _values[index] = value;
249 //% _values = reallocf(_values, newCapacity * sizeof(TYPE));
250 //% if (_values == NULL) {
263 //% [self add##ACCESSOR_NAME##Values:array->_values count:array->_count];
270 //% memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(TYPE));
283 //% TYPE temp = _values[idx1];
284 //% _values[idx1] = _values[idx2];
285 //% _values[idx2] = temp;
296 int32_t *_values;
328 return [self initWithValues:array->_values count:array->_count];
335 _values = reallocf(_values, count * sizeof(int32_t));
336 if (_values != NULL) {
338 memcpy(_values, values, count * sizeof(int32_t));
360 return [[GPBInt32Array allocWithZone:zone] initWithValues:_values count:_count];
367 free(_values);
379 && memcmp(_values, other->_values, (_count * sizeof(int32_t))) == 0);
391 [result appendFormat:@"%d", _values[i]];
393 [result appendFormat:@", %d", _values[i]];
410 block(_values[i], i, &stop);
415 block(_values[i - 1], (i - 1), &stop);
427 return _values[index];
431 _values = reallocf(_values, newCapacity * sizeof(int32_t));
432 if (_values == NULL) {
454 memcpy(&_values[initialCount], values, count * sizeof(int32_t));
473 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(int32_t));
475 _values[index] = value;
487 _values[index] = value;
491 [self addValues:array->_values count:array->_count];
502 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(int32_t));
529 int32_t temp = _values[idx1];
530 _values[idx1] = _values[idx2];
531 _values[idx2] = temp;
543 uint32_t *_values;
575 return [self initWithValues:array->_values count:array->_count];
582 _values = reallocf(_values, count * sizeof(uint32_t));
583 if (_values != NULL) {
585 memcpy(_values, values, count * sizeof(uint32_t));
607 return [[GPBUInt32Array allocWithZone:zone] initWithValues:_values count:_count];
614 free(_values);
626 && memcmp(_values, other->_values, (_count * sizeof(uint32_t))) == 0);
638 [result appendFormat:@"%u", _values[i]];
640 [result appendFormat:@", %u", _values[i]];
657 block(_values[i], i, &stop);
662 block(_values[i - 1], (i - 1), &stop);
674 return _values[index];
678 _values = reallocf(_values, newCapacity * sizeof(uint32_t));
679 if (_values == NULL) {
701 memcpy(&_values[initialCount], values, count * sizeof(uint32_t));
720 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(uint32_t));
722 _values[index] = value;
734 _values[index] = value;
738 [self addValues:array->_values count:array->_count];
749 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(uint32_t));
776 uint32_t temp = _values[idx1];
777 _values[idx1] = _values[idx2];
778 _values[idx2] = temp;
790 int64_t *_values;
822 return [self initWithValues:array->_values count:array->_count];
829 _values = reallocf(_values, count * sizeof(int64_t));
830 if (_values != NULL) {
832 memcpy(_values, values, count * sizeof(int64_t));
854 return [[GPBInt64Array allocWithZone:zone] initWithValues:_values count:_count];
861 free(_values);
873 && memcmp(_values, other->_values, (_count * sizeof(int64_t))) == 0);
885 [result appendFormat:@"%lld", _values[i]];
887 [result appendFormat:@", %lld", _values[i]];
904 block(_values[i], i, &stop);
909 block(_values[i - 1], (i - 1), &stop);
921 return _values[index];
925 _values = reallocf(_values, newCapacity * sizeof(int64_t));
926 if (_values == NULL) {
948 memcpy(&_values[initialCount], values, count * sizeof(int64_t));
967 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(int64_t));
969 _values[index] = value;
981 _values[index] = value;
985 [self addValues:array->_values count:array->_count];
996 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(int64_t));
1023 int64_t temp = _values[idx1];
1024 _values[idx1] = _values[idx2];
1025 _values[idx2] = temp;
1037 uint64_t *_values;
1069 return [self initWithValues:array->_values count:array->_count];
1076 _values = reallocf(_values, count * sizeof(uint64_t));
1077 if (_values != NULL) {
1079 memcpy(_values, values, count * sizeof(uint64_t));
1101 return [[GPBUInt64Array allocWithZone:zone] initWithValues:_values count:_count];
1108 free(_values);
1120 && memcmp(_values, other->_values, (_count * sizeof(uint64_t))) == 0);
1132 [result appendFormat:@"%llu", _values[i]];
1134 [result appendFormat:@", %llu", _values[i]];
1151 block(_values[i], i, &stop);
1156 block(_values[i - 1], (i - 1), &stop);
1168 return _values[index];
1172 _values = reallocf(_values, newCapacity * sizeof(uint64_t));
1173 if (_values == NULL) {
1195 memcpy(&_values[initialCount], values, count * sizeof(uint64_t));
1214 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(uint64_t));
1216 _values[index] = value;
1228 _values[index] = value;
1232 [self addValues:array->_values count:array->_count];
1243 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(uint64_t));
1270 uint64_t temp = _values[idx1];
1271 _values[idx1] = _values[idx2];
1272 _values[idx2] = temp;
1284 float *_values;
1316 return [self initWithValues:array->_values count:array->_count];
1323 _values = reallocf(_values, count * sizeof(float));
1324 if (_values != NULL) {
1326 memcpy(_values, values, count * sizeof(float));
1348 return [[GPBFloatArray allocWithZone:zone] initWithValues:_values count:_count];
1355 free(_values);
1367 && memcmp(_values, other->_values, (_count * sizeof(float))) == 0);
1379 [result appendFormat:@"%f", _values[i]];
1381 [result appendFormat:@", %f", _values[i]];
1398 block(_values[i], i, &stop);
1403 block(_values[i - 1], (i - 1), &stop);
1415 return _values[index];
1419 _values = reallocf(_values, newCapacity * sizeof(float));
1420 if (_values == NULL) {
1442 memcpy(&_values[initialCount], values, count * sizeof(float));
1461 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(float));
1463 _values[index] = value;
1475 _values[index] = value;
1479 [self addValues:array->_values count:array->_count];
1490 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(float));
1517 float temp = _values[idx1];
1518 _values[idx1] = _values[idx2];
1519 _values[idx2] = temp;
1531 double *_values;
1563 return [self initWithValues:array->_values count:array->_count];
1570 _values = reallocf(_values, count * sizeof(double));
1571 if (_values != NULL) {
1573 memcpy(_values, values, count * sizeof(double));
1595 return [[GPBDoubleArray allocWithZone:zone] initWithValues:_values count:_count];
1602 free(_values);
1614 && memcmp(_values, other->_values, (_count * sizeof(double))) == 0);
1626 [result appendFormat:@"%lf", _values[i]];
1628 [result appendFormat:@", %lf", _values[i]];
1645 block(_values[i], i, &stop);
1650 block(_values[i - 1], (i - 1), &stop);
1662 return _values[index];
1666 _values = reallocf(_values, newCapacity * sizeof(double));
1667 if (_values == NULL) {
1689 memcpy(&_values[initialCount], values, count * sizeof(double));
1708 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(double));
1710 _values[index] = value;
1722 _values[index] = value;
1726 [self addValues:array->_values count:array->_count];
1737 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(double));
1764 double temp = _values[idx1];
1765 _values[idx1] = _values[idx2];
1766 _values[idx2] = temp;
1778 BOOL *_values;
1810 return [self initWithValues:array->_values count:array->_count];
1817 _values = reallocf(_values, count * sizeof(BOOL));
1818 if (_values != NULL) {
1820 memcpy(_values, values, count * sizeof(BOOL));
1842 return [[GPBBoolArray allocWithZone:zone] initWithValues:_values count:_count];
1849 free(_values);
1861 && memcmp(_values, other->_values, (_count * sizeof(BOOL))) == 0);
1873 [result appendFormat:@"%d", _values[i]];
1875 [result appendFormat:@", %d", _values[i]];
1892 block(_values[i], i, &stop);
1897 block(_values[i - 1], (i - 1), &stop);
1909 return _values[index];
1913 _values = reallocf(_values, newCapacity * sizeof(BOOL));
1914 if (_values == NULL) {
1936 memcpy(&_values[initialCount], values, count * sizeof(BOOL));
1955 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(BOOL));
1957 _values[index] = value;
1969 _values[index] = value;
1973 [self addValues:array->_values count:array->_count];
1984 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(BOOL));
2011 BOOL temp = _values[idx1];
2012 _values[idx1] = _values[idx2];
2013 _values[idx2] = temp;
2025 int32_t *_values;
2063 rawValues:array->_values
2081 _values = reallocf(_values, count * sizeof(int32_t));
2082 if (_values != NULL) {
2084 memcpy(_values, values, count * sizeof(int32_t));
2109 rawValues:_values
2120 free(_values);
2132 && memcmp(_values, other->_values, (_count * sizeof(int32_t))) == 0);
2144 [result appendFormat:@"%d", _values[i]];
2146 [result appendFormat:@", %d", _values[i]];
2163 block(_values[i], i, &stop);
2168 block(_values[i - 1], (i - 1), &stop);
2185 int32_t result = _values[index];
2202 return _values[index];
2215 int32_t *scan = _values;
2226 int32_t *end = _values;
2243 _values = reallocf(_values, newCapacity * sizeof(int32_t));
2244 if (_values == NULL) {
2266 memcpy(&_values[initialCount], values, count * sizeof(int32_t));
2285 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(int32_t));
2287 _values[index] = value;
2299 _values[index] = value;
2303 [self addRawValues:array->_values count:array->_count];
2314 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(int32_t));
2341 int32_t temp = _values[idx1];
2342 _values[idx1] = _values[idx2];
2343 _values[idx2] = temp;
2369 memcpy(&_values[initialCount], values, count * sizeof(int32_t));
2393 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(int32_t));
2395 _values[index] = value;
2412 _values[index] = value;