Lines Matching defs:data
36 void show(const char *msg, Dbt *key, Dbt *data);
62 // preceded by its record number, and the data is the same, but
77 // in the stored data.
80 Dbt data(rbuf, len);
82 if ((ret = dbp->put(NULL, &key, &data, DB_NOOVERWRITE)) != 0) {
139 // the key and data pair, not just the key!
142 Dbt data;
144 if ((ret = dbcp->get(&key, &data, DB_SET_RECNO)) != 0) {
149 // Display the key and data.
150 show("k/d\t", &key, &data);
153 if ((ret = dbcp->get(&key, &data, DB_NEXT)) != 0) {
158 // Display the key and data.
159 show("next\t", &key, &data);
165 data.set_data(&recno);
166 data.set_size(sizeof(recno));
167 data.set_ulen(sizeof(recno));
168 data.set_flags(data.get_flags() | DB_DBT_USERMEM);
170 if ((ret = dbcp->get(&key, &data, DB_GET_RECNO)) != 0) {
187 // Display a key/data pair.
189 void BtRecExample::show(const char *msg, Dbt *key, Dbt *data)
192 << " : " << (char *)data->get_data() << "\n";