Lines Matching refs:data
35 DBT key, data;
78 * preceded by its record number, and the data is the same, but
82 memset(&data, 0, sizeof(DBT));
92 key.data = buf;
93 data.data = rbuf;
94 data.size = key.size = (u_int32_t)len - 1;
97 dbp->put(dbp, NULL, &key, &data, DB_NOOVERWRITE)) != 0) {
136 * the key and data pair, not just the key!
138 key.data = &recno;
140 if ((ret = dbcp->get(dbcp, &key, &data, DB_SET_RECNO)) != 0)
143 /* Display the key and data. */
144 show("k/d\t", &key, &data);
147 if ((ret = dbcp->get(dbcp, &key, &data, DB_NEXT)) != 0)
150 /* Display the key and data. */
151 show("next\t", &key, &data);
157 data.data = &recno;
158 data.size = sizeof(recno);
159 data.ulen = sizeof(recno);
160 data.flags |= DB_DBT_USERMEM;
161 if ((ret = dbcp->get(dbcp, &key, &data, DB_GET_RECNO)) != 0) {
168 /* Reset the data DBT. */
169 memset(&data, 0, sizeof(data));
192 * Display a key/data pair.
195 show(msg, key, data)
197 DBT *key, *data;
200 (int)key->size, (char *)key->data,
201 (int)data->size, (char *)data->data);