Lines Matching refs:in_hash

3322 static void php_splice(HashTable *in_hash, zend_long offset, zend_long length, HashTable *replace, …  argument
3329 uint32_t iter_pos = zend_hash_iterators_lower_pos(in_hash, 0);
3332 num_in = zend_hash_num_elements(in_hash);
3351 if (HT_IS_PACKED(in_hash)) {
3353 entry = in_hash->arPacked;
3354 for (pos = 0, idx = 0; pos < offset && idx < in_hash->nNumUsed; idx++, entry++) {
3360 zend_hash_iterators_update(in_hash, idx, pos);
3362 iter_pos = zend_hash_iterators_lower_pos(in_hash, iter_pos + 1);
3369 for ( ; pos < offset + length && idx < in_hash->nNumUsed; idx++, entry++) {
3374 zend_hash_packed_del_val(in_hash, entry);
3377 zend_hash_iterators_update(in_hash, idx, offset + length);
3378 iter_pos = zend_hash_iterators_lower_pos(in_hash, iter_pos + 1);
3384 for ( ; pos2 < offset + length && idx < in_hash->nNumUsed; idx++, entry++) {
3387 zend_hash_packed_del_val(in_hash, entry);
3390 zend_hash_iterators_update(in_hash, idx, offset + length);
3391 iter_pos = zend_hash_iterators_lower_pos(in_hash, iter_pos + 1);
3406 entry = in_hash->arPacked + idx;
3407 for ( ; idx < in_hash->nNumUsed ; idx++, entry++) {
3412 zend_hash_iterators_update(in_hash, idx, pos);
3414 iter_pos = zend_hash_iterators_lower_pos(in_hash, iter_pos + 1);
3419 Bucket *p = in_hash->arData;
3422 for (pos = 0, idx = 0; pos < offset && idx < in_hash->nNumUsed; idx++, p++) {
3434 zend_hash_iterators_update(in_hash, idx, pos);
3436 iter_pos = zend_hash_iterators_lower_pos(in_hash, iter_pos + 1);
3443 for ( ; pos < offset + length && idx < in_hash->nNumUsed; idx++, p++) {
3453 zend_hash_del_bucket(in_hash, p);
3458 for ( ; pos2 < offset + length && idx < in_hash->nNumUsed; idx++, p++) {
3461 zend_hash_del_bucket(in_hash, p);
3464 iter_pos = zend_hash_iterators_lower_pos(in_hash, iter_pos);
3476 for ( ; idx < in_hash->nNumUsed ; idx++, p++) {
3486 zend_hash_iterators_update(in_hash, idx, pos);
3488 iter_pos = zend_hash_iterators_lower_pos(in_hash, iter_pos + 1);
3495 HT_SET_ITERATORS_COUNT(&out_hash, HT_ITERATORS_COUNT(in_hash));
3496 HT_SET_ITERATORS_COUNT(in_hash, 0);
3497 in_hash->pDestructor = NULL;
3498 zend_hash_destroy(in_hash);
3500 HT_FLAGS(in_hash) = HT_FLAGS(&out_hash);
3501 in_hash->nTableSize = out_hash.nTableSize;
3502 in_hash->nTableMask = out_hash.nTableMask;
3503 in_hash->nNumUsed = out_hash.nNumUsed;
3504 in_hash->nNumOfElements = out_hash.nNumOfElements;
3505 in_hash->nNextFreeElement = out_hash.nNextFreeElement;
3506 in_hash->arData = out_hash.arData;
3507 in_hash->pDestructor = out_hash.pDestructor;
3509 zend_hash_internal_pointer_reset(in_hash);