Lines Matching refs:data

309  *	Returns a pointer to key/data pair on a page.  In the case of
445 * Sets the cursor to the next key/data pair on a page.
536 memcpy(P_ENTRY(p, n), dbt->data, dbt->size);
540 PUT_HKEYDATA(P_ENTRY(p, n), dbt->data, dbt->size, type);
551 * This is a special case to restore a key/data pair to its original
557 __ham_reputpair(p, psize, ndx, key, data)
560 const DBT *key, *data;
568 newbytes = key->size + data->size;
583 /* Put the key and data on the page. */
586 p->inp[H_DATAINDEX(ndx)] = p->inp[H_KEYINDEX(ndx)] - data->size;
587 memcpy(P_ENTRY(p, H_KEYINDEX(ndx)), key->data, key->size);
588 memcpy(P_ENTRY(p, H_DATAINDEX(ndx)), data->data, data->size);
627 * the data are large. In this case, we write a single log record
669 key_dbt.data = P_ENTRY(p, H_KEYINDEX(ndx));
672 data_dbt.data = P_ENTRY(p, H_DATAINDEX(ndx));
727 key_dbt.data = n_pagep;
845 * Given the key data indicated by the cursor, replace part/all of it
908 * B. This is a partial and we need to construct the data that
919 &tmp, &dbc->rkey.data, &dbc->rkey.size)) != 0)
933 H_DATAINDEX(hcp->bndx), &tdata, &dbc->rdata.data,
939 __os_free(tdata.data, tdata.size);
943 /* Now shift old data around to make room for new. */
945 if ((ret = __os_realloc(&tdata.data,
948 memset((u_int8_t *)tdata.data + tdata.size,
951 end = (u_int8_t *)tdata.data + tdata.size;
953 src = (u_int8_t *)tdata.data + dbt->doff + dbt->dlen;
959 memcpy((u_int8_t *)tdata.data + dbt->doff,
960 dbt->data, dbt->size);
965 __os_free(tdata.data, tdata.size);
967 err: __os_free(tmp.data, tmp.size);
972 * Set up pointer into existing data. Do it before the log
984 old_dbt.data = beg;
1002 * Replace data on a page with new data, possibly growing or shrinking what's
1004 * we are interested in changing only the data. On the other (from recovery)
1005 * we are replacing the entire data (header and all) with a new element. In
1011 * dbt: the new data that gets written at beg.
1052 dbt->data, dbt->size);
1054 memcpy(P_ENTRY(pagep, ndx), dbt->data, dbt->size);
1094 page_dbt.data = old_pagep;
1117 if (__ham_call_hash(hcp, key.data, key.size)
1125 * page to store the key/data pair.
1137 page_dbt.data = *pp;
1170 page_dbt.data = temp_pagep;
1196 page_dbt.data = old_pagep;
1204 page_dbt.data = new_pagep;
1314 key_dbt.data = &koff;
1332 data_dbt.data = &doff;
1403 * Copy the key and data entries onto this new page.
1509 "free_ovflpage: unable to lock meta data page %s\n",
1901 * the last item on the page. We need to shift data and
1906 * Move the data: src is the first occupied byte on