• Home
  • Raw
  • Download

Lines Matching refs:_values

76 //%  TYPE *_values;
108 //% return [self initWithValues:array->_values count:array->_count];
115 //% _values = reallocf(_values, count * sizeof(TYPE));
116 //% if (_values != NULL) {
118 //% memcpy(_values, values, count * sizeof(TYPE));
140 //% return [[GPB##NAME##Array allocWithZone:zone] initWithValues:_values count:_count];
147 //% return _values[index];
163 //% free(_values);
176 //% && memcmp(_values, otherArray->_values, (_count * sizeof(TYPE))) == 0);
188 //% [result appendFormat:@"##FORMAT##", _values[i]];
190 //% [result appendFormat:@", ##FORMAT##", _values[i]];
207 //% block(_values[i], i, &stop);
212 //% block(_values[i - 1], (i - 1), &stop);
229 //% memcpy(&_values[initialCount], values, count * sizeof(TYPE));
241 //% memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(TYPE));
243 //% _values[index] = value;
251 //%MUTATION_HOOK_##HOOK_2() _values[index] = value;
256 //% _values = reallocf(_values, newCapacity * sizeof(TYPE));
257 //% if (_values == NULL) {
270 //% [self add##ACCESSOR_NAME##Values:array->_values count:array->_count];
277 //% memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(TYPE));
290 //% TYPE temp = _values[idx1];
291 //% _values[idx1] = _values[idx2];
292 //% _values[idx2] = temp;
304 int32_t *_values;
336 return [self initWithValues:array->_values count:array->_count];
343 _values = reallocf(_values, count * sizeof(int32_t));
344 if (_values != NULL) {
346 memcpy(_values, values, count * sizeof(int32_t));
368 return [[GPBInt32Array allocWithZone:zone] initWithValues:_values count:_count];
375 free(_values);
388 && memcmp(_values, otherArray->_values, (_count * sizeof(int32_t))) == 0);
400 [result appendFormat:@"%d", _values[i]];
402 [result appendFormat:@", %d", _values[i]];
419 block(_values[i], i, &stop);
424 block(_values[i - 1], (i - 1), &stop);
436 return _values[index];
440 _values = reallocf(_values, newCapacity * sizeof(int32_t));
441 if (_values == NULL) {
463 memcpy(&_values[initialCount], values, count * sizeof(int32_t));
482 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(int32_t));
484 _values[index] = value;
496 _values[index] = value;
500 [self addValues:array->_values count:array->_count];
511 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(int32_t));
538 int32_t temp = _values[idx1];
539 _values[idx1] = _values[idx2];
540 _values[idx2] = temp;
554 uint32_t *_values;
586 return [self initWithValues:array->_values count:array->_count];
593 _values = reallocf(_values, count * sizeof(uint32_t));
594 if (_values != NULL) {
596 memcpy(_values, values, count * sizeof(uint32_t));
618 return [[GPBUInt32Array allocWithZone:zone] initWithValues:_values count:_count];
625 free(_values);
638 && memcmp(_values, otherArray->_values, (_count * sizeof(uint32_t))) == 0);
650 [result appendFormat:@"%u", _values[i]];
652 [result appendFormat:@", %u", _values[i]];
669 block(_values[i], i, &stop);
674 block(_values[i - 1], (i - 1), &stop);
686 return _values[index];
690 _values = reallocf(_values, newCapacity * sizeof(uint32_t));
691 if (_values == NULL) {
713 memcpy(&_values[initialCount], values, count * sizeof(uint32_t));
732 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(uint32_t));
734 _values[index] = value;
746 _values[index] = value;
750 [self addValues:array->_values count:array->_count];
761 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(uint32_t));
788 uint32_t temp = _values[idx1];
789 _values[idx1] = _values[idx2];
790 _values[idx2] = temp;
804 int64_t *_values;
836 return [self initWithValues:array->_values count:array->_count];
843 _values = reallocf(_values, count * sizeof(int64_t));
844 if (_values != NULL) {
846 memcpy(_values, values, count * sizeof(int64_t));
868 return [[GPBInt64Array allocWithZone:zone] initWithValues:_values count:_count];
875 free(_values);
888 && memcmp(_values, otherArray->_values, (_count * sizeof(int64_t))) == 0);
900 [result appendFormat:@"%lld", _values[i]];
902 [result appendFormat:@", %lld", _values[i]];
919 block(_values[i], i, &stop);
924 block(_values[i - 1], (i - 1), &stop);
936 return _values[index];
940 _values = reallocf(_values, newCapacity * sizeof(int64_t));
941 if (_values == NULL) {
963 memcpy(&_values[initialCount], values, count * sizeof(int64_t));
982 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(int64_t));
984 _values[index] = value;
996 _values[index] = value;
1000 [self addValues:array->_values count:array->_count];
1011 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(int64_t));
1038 int64_t temp = _values[idx1];
1039 _values[idx1] = _values[idx2];
1040 _values[idx2] = temp;
1054 uint64_t *_values;
1086 return [self initWithValues:array->_values count:array->_count];
1093 _values = reallocf(_values, count * sizeof(uint64_t));
1094 if (_values != NULL) {
1096 memcpy(_values, values, count * sizeof(uint64_t));
1118 return [[GPBUInt64Array allocWithZone:zone] initWithValues:_values count:_count];
1125 free(_values);
1138 && memcmp(_values, otherArray->_values, (_count * sizeof(uint64_t))) == 0);
1150 [result appendFormat:@"%llu", _values[i]];
1152 [result appendFormat:@", %llu", _values[i]];
1169 block(_values[i], i, &stop);
1174 block(_values[i - 1], (i - 1), &stop);
1186 return _values[index];
1190 _values = reallocf(_values, newCapacity * sizeof(uint64_t));
1191 if (_values == NULL) {
1213 memcpy(&_values[initialCount], values, count * sizeof(uint64_t));
1232 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(uint64_t));
1234 _values[index] = value;
1246 _values[index] = value;
1250 [self addValues:array->_values count:array->_count];
1261 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(uint64_t));
1288 uint64_t temp = _values[idx1];
1289 _values[idx1] = _values[idx2];
1290 _values[idx2] = temp;
1304 float *_values;
1336 return [self initWithValues:array->_values count:array->_count];
1343 _values = reallocf(_values, count * sizeof(float));
1344 if (_values != NULL) {
1346 memcpy(_values, values, count * sizeof(float));
1368 return [[GPBFloatArray allocWithZone:zone] initWithValues:_values count:_count];
1375 free(_values);
1388 && memcmp(_values, otherArray->_values, (_count * sizeof(float))) == 0);
1400 [result appendFormat:@"%f", _values[i]];
1402 [result appendFormat:@", %f", _values[i]];
1419 block(_values[i], i, &stop);
1424 block(_values[i - 1], (i - 1), &stop);
1436 return _values[index];
1440 _values = reallocf(_values, newCapacity * sizeof(float));
1441 if (_values == NULL) {
1463 memcpy(&_values[initialCount], values, count * sizeof(float));
1482 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(float));
1484 _values[index] = value;
1496 _values[index] = value;
1500 [self addValues:array->_values count:array->_count];
1511 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(float));
1538 float temp = _values[idx1];
1539 _values[idx1] = _values[idx2];
1540 _values[idx2] = temp;
1554 double *_values;
1586 return [self initWithValues:array->_values count:array->_count];
1593 _values = reallocf(_values, count * sizeof(double));
1594 if (_values != NULL) {
1596 memcpy(_values, values, count * sizeof(double));
1618 return [[GPBDoubleArray allocWithZone:zone] initWithValues:_values count:_count];
1625 free(_values);
1638 && memcmp(_values, otherArray->_values, (_count * sizeof(double))) == 0);
1650 [result appendFormat:@"%lf", _values[i]];
1652 [result appendFormat:@", %lf", _values[i]];
1669 block(_values[i], i, &stop);
1674 block(_values[i - 1], (i - 1), &stop);
1686 return _values[index];
1690 _values = reallocf(_values, newCapacity * sizeof(double));
1691 if (_values == NULL) {
1713 memcpy(&_values[initialCount], values, count * sizeof(double));
1732 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(double));
1734 _values[index] = value;
1746 _values[index] = value;
1750 [self addValues:array->_values count:array->_count];
1761 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(double));
1788 double temp = _values[idx1];
1789 _values[idx1] = _values[idx2];
1790 _values[idx2] = temp;
1804 BOOL *_values;
1836 return [self initWithValues:array->_values count:array->_count];
1843 _values = reallocf(_values, count * sizeof(BOOL));
1844 if (_values != NULL) {
1846 memcpy(_values, values, count * sizeof(BOOL));
1868 return [[GPBBoolArray allocWithZone:zone] initWithValues:_values count:_count];
1875 free(_values);
1888 && memcmp(_values, otherArray->_values, (_count * sizeof(BOOL))) == 0);
1900 [result appendFormat:@"%d", _values[i]];
1902 [result appendFormat:@", %d", _values[i]];
1919 block(_values[i], i, &stop);
1924 block(_values[i - 1], (i - 1), &stop);
1936 return _values[index];
1940 _values = reallocf(_values, newCapacity * sizeof(BOOL));
1941 if (_values == NULL) {
1963 memcpy(&_values[initialCount], values, count * sizeof(BOOL));
1982 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(BOOL));
1984 _values[index] = value;
1996 _values[index] = value;
2000 [self addValues:array->_values count:array->_count];
2011 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(BOOL));
2038 BOOL temp = _values[idx1];
2039 _values[idx1] = _values[idx2];
2040 _values[idx2] = temp;
2053 int32_t *_values;
2091 rawValues:array->_values
2109 _values = reallocf(_values, count * sizeof(int32_t));
2110 if (_values != NULL) {
2112 memcpy(_values, values, count * sizeof(int32_t));
2137 rawValues:_values
2149 free(_values);
2162 && memcmp(_values, otherArray->_values, (_count * sizeof(int32_t))) == 0);
2174 [result appendFormat:@"%d", _values[i]];
2176 [result appendFormat:@", %d", _values[i]];
2193 block(_values[i], i, &stop);
2198 block(_values[i - 1], (i - 1), &stop);
2218 int32_t result = _values[index];
2237 return _values[index];
2250 int32_t *scan = _values;
2261 int32_t *end = _values;
2279 _values = reallocf(_values, newCapacity * sizeof(int32_t));
2280 if (_values == NULL) {
2302 memcpy(&_values[initialCount], values, count * sizeof(int32_t));
2321 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(int32_t));
2323 _values[index] = value;
2335 _values[index] = value;
2339 [self addRawValues:array->_values count:array->_count];
2350 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(int32_t));
2377 int32_t temp = _values[idx1];
2378 _values[idx1] = _values[idx2];
2379 _values[idx2] = temp;
2407 memcpy(&_values[initialCount], values, count * sizeof(int32_t));
2431 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(int32_t));
2433 _values[index] = value;
2450 _values[index] = value;