• 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;
303 int32_t *_values;
335 return [self initWithValues:array->_values count:array->_count];
342 _values = reallocf(_values, count * sizeof(int32_t));
343 if (_values != NULL) {
345 memcpy(_values, values, count * sizeof(int32_t));
367 return [[GPBInt32Array allocWithZone:zone] initWithValues:_values count:_count];
374 free(_values);
387 && memcmp(_values, otherArray->_values, (_count * sizeof(int32_t))) == 0);
399 [result appendFormat:@"%d", _values[i]];
401 [result appendFormat:@", %d", _values[i]];
418 block(_values[i], i, &stop);
423 block(_values[i - 1], (i - 1), &stop);
435 return _values[index];
439 _values = reallocf(_values, newCapacity * sizeof(int32_t));
440 if (_values == NULL) {
462 memcpy(&_values[initialCount], values, count * sizeof(int32_t));
481 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(int32_t));
483 _values[index] = value;
495 _values[index] = value;
499 [self addValues:array->_values count:array->_count];
510 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(int32_t));
537 int32_t temp = _values[idx1];
538 _values[idx1] = _values[idx2];
539 _values[idx2] = temp;
551 uint32_t *_values;
583 return [self initWithValues:array->_values count:array->_count];
590 _values = reallocf(_values, count * sizeof(uint32_t));
591 if (_values != NULL) {
593 memcpy(_values, values, count * sizeof(uint32_t));
615 return [[GPBUInt32Array allocWithZone:zone] initWithValues:_values count:_count];
622 free(_values);
635 && memcmp(_values, otherArray->_values, (_count * sizeof(uint32_t))) == 0);
647 [result appendFormat:@"%u", _values[i]];
649 [result appendFormat:@", %u", _values[i]];
666 block(_values[i], i, &stop);
671 block(_values[i - 1], (i - 1), &stop);
683 return _values[index];
687 _values = reallocf(_values, newCapacity * sizeof(uint32_t));
688 if (_values == NULL) {
710 memcpy(&_values[initialCount], values, count * sizeof(uint32_t));
729 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(uint32_t));
731 _values[index] = value;
743 _values[index] = value;
747 [self addValues:array->_values count:array->_count];
758 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(uint32_t));
785 uint32_t temp = _values[idx1];
786 _values[idx1] = _values[idx2];
787 _values[idx2] = temp;
799 int64_t *_values;
831 return [self initWithValues:array->_values count:array->_count];
838 _values = reallocf(_values, count * sizeof(int64_t));
839 if (_values != NULL) {
841 memcpy(_values, values, count * sizeof(int64_t));
863 return [[GPBInt64Array allocWithZone:zone] initWithValues:_values count:_count];
870 free(_values);
883 && memcmp(_values, otherArray->_values, (_count * sizeof(int64_t))) == 0);
895 [result appendFormat:@"%lld", _values[i]];
897 [result appendFormat:@", %lld", _values[i]];
914 block(_values[i], i, &stop);
919 block(_values[i - 1], (i - 1), &stop);
931 return _values[index];
935 _values = reallocf(_values, newCapacity * sizeof(int64_t));
936 if (_values == NULL) {
958 memcpy(&_values[initialCount], values, count * sizeof(int64_t));
977 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(int64_t));
979 _values[index] = value;
991 _values[index] = value;
995 [self addValues:array->_values count:array->_count];
1006 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(int64_t));
1033 int64_t temp = _values[idx1];
1034 _values[idx1] = _values[idx2];
1035 _values[idx2] = temp;
1047 uint64_t *_values;
1079 return [self initWithValues:array->_values count:array->_count];
1086 _values = reallocf(_values, count * sizeof(uint64_t));
1087 if (_values != NULL) {
1089 memcpy(_values, values, count * sizeof(uint64_t));
1111 return [[GPBUInt64Array allocWithZone:zone] initWithValues:_values count:_count];
1118 free(_values);
1131 && memcmp(_values, otherArray->_values, (_count * sizeof(uint64_t))) == 0);
1143 [result appendFormat:@"%llu", _values[i]];
1145 [result appendFormat:@", %llu", _values[i]];
1162 block(_values[i], i, &stop);
1167 block(_values[i - 1], (i - 1), &stop);
1179 return _values[index];
1183 _values = reallocf(_values, newCapacity * sizeof(uint64_t));
1184 if (_values == NULL) {
1206 memcpy(&_values[initialCount], values, count * sizeof(uint64_t));
1225 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(uint64_t));
1227 _values[index] = value;
1239 _values[index] = value;
1243 [self addValues:array->_values count:array->_count];
1254 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(uint64_t));
1281 uint64_t temp = _values[idx1];
1282 _values[idx1] = _values[idx2];
1283 _values[idx2] = temp;
1295 float *_values;
1327 return [self initWithValues:array->_values count:array->_count];
1334 _values = reallocf(_values, count * sizeof(float));
1335 if (_values != NULL) {
1337 memcpy(_values, values, count * sizeof(float));
1359 return [[GPBFloatArray allocWithZone:zone] initWithValues:_values count:_count];
1366 free(_values);
1379 && memcmp(_values, otherArray->_values, (_count * sizeof(float))) == 0);
1391 [result appendFormat:@"%f", _values[i]];
1393 [result appendFormat:@", %f", _values[i]];
1410 block(_values[i], i, &stop);
1415 block(_values[i - 1], (i - 1), &stop);
1427 return _values[index];
1431 _values = reallocf(_values, newCapacity * sizeof(float));
1432 if (_values == NULL) {
1454 memcpy(&_values[initialCount], values, count * sizeof(float));
1473 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(float));
1475 _values[index] = value;
1487 _values[index] = value;
1491 [self addValues:array->_values count:array->_count];
1502 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(float));
1529 float temp = _values[idx1];
1530 _values[idx1] = _values[idx2];
1531 _values[idx2] = temp;
1543 double *_values;
1575 return [self initWithValues:array->_values count:array->_count];
1582 _values = reallocf(_values, count * sizeof(double));
1583 if (_values != NULL) {
1585 memcpy(_values, values, count * sizeof(double));
1607 return [[GPBDoubleArray allocWithZone:zone] initWithValues:_values count:_count];
1614 free(_values);
1627 && memcmp(_values, otherArray->_values, (_count * sizeof(double))) == 0);
1639 [result appendFormat:@"%lf", _values[i]];
1641 [result appendFormat:@", %lf", _values[i]];
1658 block(_values[i], i, &stop);
1663 block(_values[i - 1], (i - 1), &stop);
1675 return _values[index];
1679 _values = reallocf(_values, newCapacity * sizeof(double));
1680 if (_values == NULL) {
1702 memcpy(&_values[initialCount], values, count * sizeof(double));
1721 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(double));
1723 _values[index] = value;
1735 _values[index] = value;
1739 [self addValues:array->_values count:array->_count];
1750 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(double));
1777 double temp = _values[idx1];
1778 _values[idx1] = _values[idx2];
1779 _values[idx2] = temp;
1791 BOOL *_values;
1823 return [self initWithValues:array->_values count:array->_count];
1830 _values = reallocf(_values, count * sizeof(BOOL));
1831 if (_values != NULL) {
1833 memcpy(_values, values, count * sizeof(BOOL));
1855 return [[GPBBoolArray allocWithZone:zone] initWithValues:_values count:_count];
1862 free(_values);
1875 && memcmp(_values, otherArray->_values, (_count * sizeof(BOOL))) == 0);
1887 [result appendFormat:@"%d", _values[i]];
1889 [result appendFormat:@", %d", _values[i]];
1906 block(_values[i], i, &stop);
1911 block(_values[i - 1], (i - 1), &stop);
1923 return _values[index];
1927 _values = reallocf(_values, newCapacity * sizeof(BOOL));
1928 if (_values == NULL) {
1950 memcpy(&_values[initialCount], values, count * sizeof(BOOL));
1969 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(BOOL));
1971 _values[index] = value;
1983 _values[index] = value;
1987 [self addValues:array->_values count:array->_count];
1998 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(BOOL));
2025 BOOL temp = _values[idx1];
2026 _values[idx1] = _values[idx2];
2027 _values[idx2] = temp;
2039 int32_t *_values;
2077 rawValues:array->_values
2095 _values = reallocf(_values, count * sizeof(int32_t));
2096 if (_values != NULL) {
2098 memcpy(_values, values, count * sizeof(int32_t));
2123 rawValues:_values
2134 free(_values);
2147 && memcmp(_values, otherArray->_values, (_count * sizeof(int32_t))) == 0);
2159 [result appendFormat:@"%d", _values[i]];
2161 [result appendFormat:@", %d", _values[i]];
2178 block(_values[i], i, &stop);
2183 block(_values[i - 1], (i - 1), &stop);
2200 int32_t result = _values[index];
2217 return _values[index];
2230 int32_t *scan = _values;
2241 int32_t *end = _values;
2258 _values = reallocf(_values, newCapacity * sizeof(int32_t));
2259 if (_values == NULL) {
2281 memcpy(&_values[initialCount], values, count * sizeof(int32_t));
2300 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(int32_t));
2302 _values[index] = value;
2314 _values[index] = value;
2318 [self addRawValues:array->_values count:array->_count];
2329 memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(int32_t));
2356 int32_t temp = _values[idx1];
2357 _values[idx1] = _values[idx2];
2358 _values[idx2] = temp;
2384 memcpy(&_values[initialCount], values, count * sizeof(int32_t));
2408 memmove(&_values[index + 1], &_values[index], (initialCount - index) * sizeof(int32_t));
2410 _values[index] = value;
2427 _values[index] = value;