Lines Matching +defs:t +defs:e +defs:p
49 * t: tree
50 * e: key/data pair to be returned
61 __bt_ret(BTREE *t, EPG *e, DBT *key, DBT *rkey, DBT *data, DBT *rdata, int copy)
64 void *p;
66 bl = GETBLEAF(e->page, e->index);
70 * leave the page pinned and don't copy unless the user specified
77 if (__ovfl_get(t, bl->bytes,
81 } else if (copy || F_ISSET(t, B_DB_LOCK)) {
83 p = realloc(rkey->data, bl->ksize);
84 if (p == NULL)
86 rkey->data = p;
102 if (__ovfl_get(t, bl->bytes + bl->ksize,
106 } else if (copy || F_ISSET(t, B_DB_LOCK)) {
109 p = realloc(rdata->data, bl->dsize + 1);
110 if (p == NULL)
112 rdata->data = p;
130 * t: tree
132 * e: pointer to EPG for comparison
140 __bt_cmp(BTREE *t, const DBT *k1, EPG *e)
155 h = e->page;
156 if (e->index == 0 && h->prevpg == P_INVALID && !(h->flags & P_BLEAF))
161 bl = GETBLEAF(h, e->index);
169 bi = GETBINTERNAL(h, e->index);
179 if (__ovfl_get(t, bigkey,
180 &k2.size, &t->bt_rdata.data, &t->bt_rdata.size))
182 k2.data = t->bt_rdata.data;
184 return ((*t->bt_cmp)(k1, &k2));
207 * If a size_t doesn't fit in an int, this routine can lose.
240 /* a->size must be <= b->size, or they wouldn't be in this order. */